-2

I want to make an application with an UI looks like apple podcast application.

There are 2 parts on this UIViewController:

  1. fixed part with buttons and Image
  2. tableview with refreshcontrol

This is this last point my problem: refreshcontrol. I found a previous SO solution, but adding refreshcontrol directly on my view breaks all cells and table styles.

Do you know how can I make a view with these traits: fixed part, refreshcontrol and tableview?

Community
  • 1
  • 1
ppmax
  • 23
  • 3

1 Answers1

0

You can use UIViewController containment.

You can have a parent view controller that includes the a view for the fixed part at the top, and a UITableView at the bottom.

For the UITableView you can contain a UITableViewController as a child view controller, so you can use the UIRefreshControl as intended.

pgb
  • 24,813
  • 12
  • 83
  • 113