X-Code programming tutorial#4 – part 2/3: UITableView and UINavigationController

In this tutorial, you’ll learn how to create apps with UITableView, and how to use navigation controllers.

uitableview iphone Programming Tutorial – Part 1

For MORE lessons like this, visit mycodeteacher.com I Build iphone Apps! Just e-mail me and let me know what you need built! NOTE!!! View this at higher quality here: vimeo.com A tutorial that teaches iphone programmers how to populate a uitableview. SOURCE CODE: #import “tableviewtestappdelegate.h” @implementation tableviewtestappdelegate @synthesize window; – (void)applicationdidfinishlaunching:(uiapplication *)application { contentarray = [[nsarray arraywithobjects:@”First”, @”Second”, @”Third”, nil] retain]; [window addsubview:[mainnavcontroller view]]; } – (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section { return [contentarray count]; } – (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { static nsstring *identity = @”maincell”; uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:identity]; if(cell == nil) { cell = [[[uitableviewcell alloc] initwithframe:cgrectzero reuseidentifier:identity] autorelease]; } cell.text = [contentarray objectatindex:indexpath.row]; return cell; } – (void)dealloc { [window release]; [super dealloc]; } @end E-mail me for .zip