ios - uitableview inside multiple view controllers -


i have 'repeat' uitableview 2 or more view controllers. using uitableviewcontroller methods inside view controllers using methods/delegates/datasources uitablewviewcontroller. example: i've uitableviewcontroller wich displays twitter feed own style, need table in more 1 view controller , maybe changing twitteruser in each view controller (just example).

try: i've done create (with storyboard) uiviewcontroller , uitablewviewcontroller, both own methods. , on uiviewcontroller viewdidload, try add uitablewviewcontroller.tableview subclass. , works! result empty table. tried set delegates/datasources ddnt work..

-(void)viewdidload {     [super viewdidload];      //add table subview     thetable *t = [[thetable alloc] init];      [self.view addsubview:t.tableview];     t.tableview.frame = cgrectmake(0, 100, 320, 2000);     t.tableview.backgroundcolor = [uicolor bluecolor];  } 

this code works, displays empty uitable inside view controller..

*thetable uitableviewcontroller object (.h, .m, , storyboard view) *just set backgroundcolor check if there's on screen *using ios6

thanks!

make sure implementing table view delegate , datasource methods in thetable.also try [t.tableview reloaddata] after adding tableview view controller's view.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -