I consisting of items such as a table view (HomeViewController): Reporting Setting Let me know The items being happening as separate files (Location View Controller, Reporting View Controller and View View Controller). If a user clicks on the location then a new screen / activity / view should be open and the same for the remaining items. Someone can type help.my please type: to select
#import "HomePageController.h" @implementation HomePageController @synthesize menuList, table; // Apply Endload to make additional setup after loading the View View, usually by a nibb. - (void) viewDidLoad {menuList = [[NSMutableArray alloc] initWithObjects: [NSArray arrayWithObjects: @ "location" zero], [NSArray arrayWithObjects: @ "reporting" zero], [NSArray arrayWithObjects: @ "Settings", null] , [NSArray arrayWithObjects: @ "password", null], [NSArray arrayWithObjects: @ "help" zero], [NSArray arrayWithObjects: @ "about" zero], [NSArray arrayWithObjects: @ "stock", null] , next to nothing ]; [Self. Navigationbar set navigation navigation bar: NO]; Self.navigationController.navigationBar.tintColor = [UIColor blackColor]; Self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; Self.title = @ "CoinRead"; [Reload table]; [Super viewedload]; } - (NSInteger) numberOfSectionsInTableView: (UITableView *) theTableView {return1; } - (CGFloat) TableView: (UITableView *) TableHigh HeightForrendApp: (NSIndexPath *) IndexText {Return 40; } - (NSInteger) TableView: (UITableView *) theTableView numberofFirezInSAS: (NSInteger) section {return menuList.count; } - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath {static NSString * CellIdentifier = @ "CellIdentifier"; UITableViewCell * cell = [table dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[[UTTable electricity alkal] intimateframe: CGRxero] AutoEx]; } Cell.highlighted = No; Cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; NSArray * rowArray = [menuList object is index: indexpath.ro]; UILabel * nameLabel = [[[UILabel alloc] initWithFrame: CGRactMake (15, 8, 200, 20)] AutoEx]; NameLabel.text = [NSString stringWithFormat: @ "% @", [linear objectwithoutx: 0]]; NameLabel.backgroundColor = [UIColor clear collar]; NameLabel.shadowColor = [UIColor whiteColor]; NameLabel.shadowOffset = CGSizeMake (0.0, 0.5); NameLabel.textColor = RGB (0,0,0); [Name label set font: [UIFont boldSystemFontOfSize: 16.0f]]; [Cell.contentView addSubview: nameLabel]; Return cell; }
UITableViewDelegate on the method apply event
- (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath
Comments
Post a Comment