These days have some tasks to follow, the learning of iOS pull, see to seize it, see the turn to learn is UITableView.
BIDViewController.h
#import <UIKit/UIKit.h>@interface Bidviewcontroller:uiviewcontroller< Uitableviewdatasource, uitableviewdelegate>*computers; @end
Bidviewcontroller.m
#import "BIDViewController.h"#import "BIDNameAndColorCell.h"@implementationBidviewcontrollerStaticNSString *celltableidentifier =@"Celltableidentifier";//Reuse Tags- (void) viewdidload{[Super Viewdidload]; Self.computers= @[ @{@"Name":@"MacBook",@"Color":@" White"}, @{@"Name":@"MacBook Pro",@"Color":@"Silver"}, @{@"Name":@"IMac",@"Color":@"Silver"}, @{@"Name":@"Mac Mini",@"Color":@"Silver"}, @{@"Name":@"Mac Pro",@"Color":@"Silver"}];//assigning values to NsarrayUITableView*tableview = (ID) [Self.view Viewwithtag:1];//This view is managed by the controller and Viewwithtag is based on the tab setTableview.rowheight = $;//set the height of each rowuinib *nib = [uinib nibwithnibname:@"Bidnameandcolorcell"Bundle:nil]; [TableView registernib:nib forcellreuseidentifier:celltableidentifier];}#pragmaMark-#pragmaMark Table Data Source methods-(Nsinteger) TableView: (UITableView *) TableView numberofrowsinsection: (nsinteger) section{return[Self.computers Count];}-(UITableViewCell *) TableView: (UITableView *) TableView Cellforrowatindexpath: (Nsindexpath*) indexpath{Bidnameandcolorcell*cell =[TableView Dequeuereusablecellwithidentifier:celltableidentifier]; Nsdictionary*rowdata =Self.computers[indexpath.row]; Cell.name= rowdata[@"Name"]; Cell.color= rowdata[@"Color"]; returncell;}@end