tableview - iOS: Embed Table View in other View (but table view has a complex table view controller..) -
i'm struggling problem, need help. i've programmed complex table view controller (with nsfetchedresults protocol etc) , used in app , worked great. since want table view inside view (so can add small subview @ bottom of screen), i'm struggling how this! know know how embed simple table view inside view , link it's view controller.
but how can in case little effort possible? mean can somehow use table view controller have though superview must have own view controller?! , how that? sorry i'm still beginner :)
since have tableviewcontroller. add subview viewcontroller's (self) view, this:
tvc = <your tableviewcontroller instance>; [self addchildviewcontroller:tvc]; tvc.view.frame = <your desired frame>; [self.view addsubview:tvc.view]; adding tvc childviewcontroller forward ui methods of 'self' willappear , tvc.
Comments
Post a Comment