How can we create 2 table views in a single view without using section TableViews..,
I just want to display two tableViews in the view screen.., Say.., I have dragged two UITableViews from the Interface Builder to my view screen.., and i connected the IBOutlet defined in interface file.., AFAIK, we need to define two methods in the implementation file.. i.e.., numberOfRows and numberOfSections.., But I am confused.., doing that will change the tableView property of both the tables…
EDITED:
I want to create a horizontal scroll view..,with 3 tableViews of size 320 X 200..,
What I did was dragged UIScrollView to the view in IB.., Then dragged 3 UITableViews into that scrollView.., What do I need to do next., to fill up the table contents ?
Table views are
UIView. So you can add multiple table view as subview just like you can add multiple labels or buttons. However, if you want to use the same object as delegate for both table views then a little more work is needed. All the delegate methods are passed the table view for which the method has been called as the first parameter. You need to check that parameter to know for which table view the method is called. For example: