ios - How to add a tableView into a CellView in objective c? -


i want show tableview cell like:

 _____________________________________  | (image) ______________              | --cell 0      |         | mycustomtext|--cell 0.0   |  |         |_____________|             |  |         |mycustomtext2|--cell 0.1   |  |         |_____________|             |  |                                     |  |                                     |   --------------------------------------   _____________________________________  |  (image) 2                           | --cell 1   -------------------------------------- 

i'm trying add tableview in storyboard , connect new tableviewcontroller , new customcelltableview, not show in row's table.

it's possible? how can declare viewcontroller or needn't add viewcontroller?

thanks!

i think don't need new tableview controller. in table cell, can add tableview.

@interface imagecell : uitableviewcell<uitableviewdatasource,uitableviewdelegate>  @property (retain, nonatomic) iboutlet uitableview *abc;  @end 

and implement datasource , delegate method usual.

#pragma mark - table view data source  - (nsinteger)numberofsectionsintableview:(uitableview *)tableview {     return 1; }  - (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section {     return 1; }  - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:<#@"reuseidentifier"#> forindexpath:indexpath];      // configure cell...      return cell; } 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -