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
Video Rating: 4 / 5

15 thoughts on “UITableView iPhone Programming Tutorial – Part 1

  1. Cool video, I just got my Mac set up and started iPhone programming. One question, how did you change the color of the Finderbar? Is it a skinning program?

  2. Hey Masna360,
    Good job. I appreciate this video as it is a visual aid in my quest to master Obj-C.

    Thanks & keep it coming!!!

  3. I stuttered for 2 seconds. I don’t rehearse this, I just wing it. I apologize that not even I, Masna360 from YouTube, am not perfect.

  4. Seriously… what the heck happened at 7:30??? Brain freeze? You don’t um.. ah.. have to.. ah.. so um.. wha what we’re gonna do here?

Leave a Reply to Masna360 Cancel reply

Your email address will not be published. Required fields are marked *