Skip to content

Ozar.net Developer Blog

Programming in PHP, C, C#, ASP.NET, Java, Objective-C, SQL also for MS SQL Server, Oracle & MySQL Development

Menu
  • Home
  • About
  • Tutorials
  • Contact
  • Privacy
Menu

uitableview iphone Programming Tutorial – Part 1

Posted on March 29, 2010 by OD


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

25 thoughts on “uitableview iphone Programming Tutorial – Part 1”

  1. rathodkk says:
    March 29, 2010 at 1:16 AM

    with so many crappy iPhone learning sites out there, developers are having a hard time finding the right training resource and program. EDUmobile. ORG has changed that with their iPhone Training Program that is currently teaching over 100 students.

    Log in to Reply
  2. chromeOne7 says:
    March 29, 2010 at 1:32 AM

    nevermind i found the translucent menu setting…

    Log in to Reply
  3. chromeOne7 says:
    March 29, 2010 at 1:42 AM

    My wallpaper is blue but my finderbar is still silver, how can it be changed?

    Log in to Reply
  4. mrpoet123456789 says:
    March 29, 2010 at 2:21 AM

    nope
    its your wallpaper

    Log in to Reply
  5. chromeOne7 says:
    March 29, 2010 at 2:52 AM

    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?

    Log in to Reply
  6. ChoclateSailor says:
    March 29, 2010 at 3:18 AM

    What a dock…what’s your screen resolution?

    Log in to Reply
  7. johntkucz says:
    March 29, 2010 at 4:15 AM

    wow. trim dock!

    Log in to Reply
  8. oliverkiss2008 says:
    March 29, 2010 at 4:32 AM

    I freaking love you man!

    Log in to Reply
  9. patsyuto45 says:
    March 29, 2010 at 4:57 AM

    Great vid 🙂 I’ve got my iPhone too, for free:)
    From here: freebies(.)comoj(.)com/iphone
    So, good luck!!!

    Log in to Reply
  10. jakemertz says:
    March 29, 2010 at 5:54 AM

    LOL

    Log in to Reply
  11. cartwa says:
    March 29, 2010 at 6:21 AM

    What is the code I would use to add a weblink?

    Log in to Reply
  12. Nicodemus80 says:
    March 29, 2010 at 7:11 AM

    Hey Masna, nice job.
    where is your email. I’d like to contact you…

    Log in to Reply
  13. furiouspride says:
    March 29, 2010 at 8:07 AM

    where’s your tutorials bitch?

    Log in to Reply
  14. kenatkenichikato says:
    March 29, 2010 at 8:14 AM

    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!!!

    Log in to Reply
  15. cornisfunny1218 says:
    March 29, 2010 at 9:11 AM

    I cannot open a cocoa touch application.

    Log in to Reply
  16. Masna360 says:
    March 29, 2010 at 9:21 AM

    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.

    Log in to Reply
  17. delfasco says:
    March 29, 2010 at 9:44 AM

    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?

    Log in to Reply
  18. Masna360 says:
    March 29, 2010 at 9:48 AM

    LOL! Care to elaborate?

    Log in to Reply
  19. yoman258 says:
    March 29, 2010 at 10:00 AM

    Objective-C is a horrible language… Only apple fan boys like it apparently.

    Log in to Reply
  20. dinahcancer says:
    March 29, 2010 at 10:40 AM

    google PyObjC

    Log in to Reply
  21. Masna360 says:
    March 29, 2010 at 10:49 AM

    I don’t believe you can. I know that you can use C++ scripts for Audio Programming (but Apple has setup the iPhone programming environment for that). I don’t know about Python. I would suggest just learning Objective-C, it’s a wonderful language.

    Log in to Reply
  22. izzyburkett1 says:
    March 29, 2010 at 11:36 AM

    question can you program apps in Python and port them over to the iphone or does the os on it already run Python?

    Log in to Reply
  23. Grundalizer says:
    March 29, 2010 at 12:35 PM

    lol @ 40$/half hour

    Log in to Reply
  24. vaxjoaberg says:
    March 29, 2010 at 1:20 PM

    Err, I meant, “[contentArray release];”.

    Log in to Reply
  25. vaxjoaberg says:
    March 29, 2010 at 1:34 PM

    Question: in the app delegate code file you create the contentArray as with the retain keyword:

    contentArray = [[NSArray arrayWithObjects:@”First”, … , nil] retain];”).

    Shouldn’t you subsequently release the contentArray object in the dealloc method?

    [contentArray dealloc];

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Recent Posts

  • NSTableView with Core Data Tutorial using NSFetchedResultsController
  • CodeIgniter Wizard – a new PHP CRUD Code Generator for macOS
  • Installing Oracle Database 10g Express Edition and Changing the Default HTTP Port
  • Xcode Tutorial 2 – Putting iAd into your App (The Apple Approved Way)
  • Cocoa Programming: A Quick-Start Guide for Developers

Blogroll

  • All Systems GO
  • GOZmosis
  • Maclord's Blog
  • Ozar.net

Tags

.NET 2008 application ASP.NET basic Beginning best books business Business Objects C# Database Databases Development Edition Guide iPhone Java Java EE learn Learning Microsoft MS SQL Server MySQL Objective-C Programming objects Oracle Part PHP PL/SQL Professional Programming Server Software SQL T-SQL TSQL Tutorial Tutorials Using Video Visual Visual Basic .NET Web Programming Tutorials XCode
© 2026 Ozar.net Developer Blog | Powered by Minimalist Blog WordPress Theme

Powered by
►
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
►
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
►
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
►
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
►
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by