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
nope
its your wallpaper
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?
What a dock…what’s your screen resolution?
wow. trim dock!
I freaking love you man!
Great vid 🙂 I’ve got my iPhone too, for free:)
From here: freebies(.)comoj(.)com/iphone
So, good luck!!!
LOL
What is the code I would use to add a weblink?
Hey Masna, nice job.
where is your email. I’d like to contact you…
where’s your tutorials bitch?
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!!!
I cannot open a cocoa touch application.
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.
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?
LOL! Care to elaborate?