UITableView 数据从下往上增长/滑动

tableview变化

        tableView.transform = CGAffineTransformMakeRotation(-M_PI);

cell

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    。。。。
    cell.transform = CGAffineTransformMakeRotation(M_PI);
    return cell;
}

数据

    [self.dataArray insertObject:barrage atIndex:0];

以上是object c

swift是

tableView.transform = CGAffineTransform(rotationAngle: -CGFloat.pi)
cell.transform = CGAffineTransform(rotationAngle: CGFloat.pi)

猜你喜欢

转载自blog.csdn.net/linzhiji/article/details/128793070