Can anyone tell me how I can show multiple UITableViews in a single view?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
To show multiple UITableView in a single view, you can Instantiate multiple UITableView and add them as subviews, like this:
1) Draw different table views using different frames/ Drag and drop table views of different sizes, if using XiB.
2) Conform to table view protocols as usual and give implementation for delegate/datasource methods
3) In the delegate/datasource methods decide for which table view, it was called, using the table view's object. for example:
you will need to implement multiple tableView data source. create new NSObject class for each table view:
in DataSourceOne.h:
Then, in every *.m files of data source classes implement source of each table view data. Then, in ViewController class, which contains your table Views:
ViewController.h:
Finaly, set data sources and delegates to every UITableView:
You may even change gata source for every tableView at any time: just set new datasource and delegete to it. GL&HF