Is it possible to access a UITableView's ScrollView In Code From A Nib?

后端 未结 3 775
遥遥无期
遥遥无期 2020-12-09 04:24

Right now I am creating a UITableView in a FlipsideView nib. I don\'t seem to be able to change the background of the table view from within interface builder. I can fix t

3条回答
  •  情话喂你
    2020-12-09 05:09

    A UITableView doesn't have a UIScrollView, it is a UIScrollView. UITableView is a subclass of UIScrollView as can be seen it the documentation. Any properties of functionality of UIScrollView you want to access can be directly accessed via the table view.

    Similarly, UITableViewDelegates are all UIScrollViewDelegates.

提交回复
热议问题