is it possible to move the UIScrollView indicator from the right side to the left?

后端 未结 3 1425
花落未央
花落未央 2020-12-31 01:10

I realize I can rotate the cells and move the indicator by displaying the scroll view \"upside down\" but that requires a lot of other rotations, and manipulating of informa

3条回答
  •  遥遥无期
    2020-12-31 02:08

    A quick way to achieve this (if you're not using row actions) without having to calculate insets or messing with additional table views, would be to transform the table view across the Y-axis (flip) and then transform the cells back when you get them.

    tableView.transform = CGAffineTransformMakeScale(1, -1);
    

    and then

    cell.transform = CGAffineTransformMakeScale(1, -1);
    

提交回复
热议问题