Added: 2 years ago
From: OreillyMedia
Views: 166,012
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (412)

Sign In or Sign Up now to post a comment!
  • This is great .. saved me sooooo much time .... thank you for posting.

  • Okay after a few search, I find that i have to add in the .plist file the "Main nib file base name" field with the name of the MainWindow

  • I tried this tutorial, but with the last version of XCode, there is no template "window application", it's replace by an "empty application", which dont have any .xib. So i added manually the .xib, and even after doing everything shown in this video, the first time we have to try the application, it results in a black screen. I probably missed something but i can't figure out what it is.

  • What is that symbol before UITableViewDelegate at 12:28 ?

  • hey great tutorial but i have a question. i can´t change the size of the view.xib to 411 px the numbers are for some reason locked. help me please

  • @cykelhjalm  a quick solution to this is to delete the UIView and re-add a new UIView element just after you created a .xib file, then you can modify the size.

  • Nothing like following an XCode tutorial spoken by such a smooth and beautiful voice.

  • Thanks!

  • Comment removed

  • Great tutorial! Thanks a lot!

  • O!Reilly'thank you for sharing this programing vid!

  • Thank you, thank you, thank you! i've gone over this a few times and even taken extensive notes....is this the same method you would use in setting up a drill down menu with tab bars? How would you set it up to work with a plist?

    Thanks again!

  • my content in the table are not appearing! Can someone help me, when she build and go at 20:08, at my table, nothing appear!

  • @vitaligra SAME, DID YOU FIND OUT WHATS WRONG!?!? PLEASE HELP

  • @12Quiza no I didn't sorry

  • @vitaligra I had the same issue. i found out that i forgot to reference the navCont. class that she did at 10:44 . I imported my navCont.h instead, but it worked just fine. Hope this helps.

  • @SAMS96max thank you

  • @12Quiza @vitaligra

    make sure u change the return value to '1'. default is '0'

    CODE:

    - (NSInteger)numberOfSectionsInT­ableView:(UITableView *)tableView

    { // Return the number of sections. return 1;

  • @Hilasalih thank you very much champ

  • Thanks for this....it helps a lot!

  • very complicated. can someone suggest me how to make an app like jobjuice. Simply information oriented app using a navigation system with different views.

  • I am using xcode 4 and thinks that I've done pretty much every right but somehow it crashes and said: "@synthesize booksArray; Thread 1: stopped at breakpoint 4"

    Whatever that means?!?

    Can someone help?

  • you can make iphone ipad android apps online without programming or coding

    start now make your apps by your self visit our site

    AppOmaker C0M

    or go to my page for more ..

  • This only gives me a blank application even though i've added lots of things in the firstViewCOntroller .xib , seems like other people are having the same problem! Do you mind helping us out?? I'm using xcode 3, you haven't specified what version you're using..

  • Can you send me a sample code of this project?

  • To fix warning change cell.text to cell.textLabel.text

  • absolutely great. your tutorial was exactly what i needed for my project. thanks!!

  • Great video, really helped me understand a lot about the different views in iOS and how they all interact.

  • When I click on the table row it crashes on the pushViewController method

    Terminating app due to uncaught exception 'NSInternalInconsistencyExcept­ion', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "FavouritesDetailView" nib but the view outlet was not set.'

    I've checked the FavouritesDetailViewController in IB and the view outlet appears to be set.

    Any ideas? Thanks.

  • I'd love to see this as an Xcode 4 example!! I haven't found one yet, and have several problems getting things to link in 4. :(

  • The code to get the app delegate, written from 25:30 could be replaced with a single line: [self.navigationController pushViewController:bookDetailV­iewController animated:YES];

  • @thisshitiscalleddeaf Yeah. Dry. It drags out too long and she beats around the bush too much. It's hard to watch. I DID crack a book. Thankfully, because this instructional video leaves much to be desired.

    Glad to see you're so passionate about a youtube video on programming though....

  • XCode 4 Changes (part 1):

    11:31 - Create UIViewController. Next screen, choose to subclass a UITableViewController. A .xib file is auto created.

    12:43 - Instead of setting the type, drag a new Navigation Controller on top of the actual TabBar in the view (see a + icon). This adds a new Tab with everything. Delete the old "first view" from the tree view. This is now your "first view".

    14:07 - View already created with a TableView inside, just link it to file's owner.

    (no more chars remaining).

  • @itaialter THANKS FOR POSTING.  I've had very little success finding a great xcode4 tutorial exactly like this video. It's a big change over xcode3!!

  • @itaialter when i try to drag a navigation controller on top of the actual tab bar it wont attach itself to the view. It just floats back to the library. Any suggestions?

    Thanks

    -UT College Student

  • Does anyone know how to create a custom image for the first icon? 04:49 

  • @blaticavenue yeah, but what xcode version do you have?

  • Wait never mind in just downloaded the high quality version off the site

  • Does anyone know the line at 12:11 ish I need to know the character after the UITableViewDataSource

  • Pink iDisk icon is epic!

  • Post it in HD please!!

  • cell.text=[booksArray objectAtIndex:row];

    here "text " is deprecated.

    IF anyone having solutions to overcome this problem,plsese reply??????

  • @5JADU Use cell.textLabel.text

  • @5JADU [cell.text setText:array];

  • There seems to be some kind of fatal error now that Apple have updated the SDK, not only that but all the building interface are different to those shown on this video. This used to be my fav' now I can't get anything to work. Why oh, why have Apple done this?

    

  • With this when i compile i only getting a blank table view,compiler not compiling the BooksTableViewcontroller class.

    what i can do???

    waiting for your reply

  • After adding that comment number of warnings raised to 6

    warnings are,

    Format not a string literal and no argument

    set text is deprecated......

    NSMutable array may not respond to -ObjectAtIndex

    ObjectAtIndex not found......

  • Has anyone tried this with xCode4? I am having some problems and would love some help.

  • Has anyone tried this with xCode4? I am having some problems and would love some help.

  • I like this video,i just implement the tab bar, and one tab but the other tab causing some problems to me.I cant load table view to the navigation controller.Also i got a warning for the comment

    cell.text=[booksArray ObjectAtIndex:row];

    and the warning say's

    'setText ' is deprecated..................

    could you help me to solve the problem??????

  • @5JADU I'd need to double check but I think you wanna make that "cell.text = [NSString stringWithFormat:[booksArray ObjectAtIndex:row]];

  • I like this video,i just implement the tab bar, and one tab but the other tab causing some problems to me.I cant load table view to the navigation controller.Also i got a warning for the comment

    cell.text=[booksArray ObjectAtIndex:row];

    and the warning say's

    'setText ' is deprecated..................

    could you plese help me to solve the problem??????

  • This has always worked for me but after the latest update from Apple everything has gone crazy! Now I don't even get to see the first view.... all I get is a blank space. What a nightmare! Any suggestions... other than get a better brain.

  • I've just run through this with XCode 4 as a newbie - excellent tutorial - but a few slight hiccups along the way - for example creating the Nav Controller in the Tab Bar - found if you dragged the Nav Controller object into the Tab Bar Controller XCode 4 sets everything up for you.

    Once I worked that out everything else went smoothly.

    Thanks - been trying to do this for ages.

  • This is very helpful for a newbie like me..

    Elisabeth also have a very nice voice that made me always pay attention on the tutorial..

  • I also would like to know how to put different content on the various view pages. Book 1 should have different description than book 2. How does one do that? Also can I add other content to the different pages; such as a separate picture of the book cover to each page, and also a button that when pushed would play a description of excerpt from the book? How do I do that? Thanks for the wonderful tutorial, it was clear and concise.

  • great tutorial. as stated below xcode 4 you will need to change numberofsectionsintableview to 1 - i got away with using the depracted cell.text - but also the last section didselectrowatindexpath i had to use self.nagivationController vs getting it from the delegate (read the sample provided by auto generated)

  • @bloodstainss How did you get it to work? im using XCode4 btw right now what i have is:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSInd­exPath *)indexPath { NSInteger row = [indexPath row]; if (self.bookDetailViewController == nil){ BookDetailViewController * aBookDetail = [[BookDetailViewController alloc] initWithNibName:@"BookDetailVi­ew" bundle:nil]; self.bookDetailViewController = aBookDetail; [aBookDetail release];

    ... cont'd

  • @bloodstainss ...cont'd }

     bookDetailViewController.title = [NSString stringWithFormat:@"%@", [booksArray objectAtIndex:row]]; ORBooksAppDelegate *delegate = [[UIApplication sharedApplication] delegate]; [delegate.booksNavController pushViewController:bookDetailV­iewController animated:YES];

  • - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSInd­exPath *)indexPath

    {

     NSInteger row = [indexPath row]; if(self.boardView == nil){ BoardView *aboardView = [[BoardView alloc]initWithNibName:@"BoardV­iew" bundle:nil]; self.boardView = aboardView; [aboardView release]; } self.boardView.view.hidden = NO; [self.navigationController pushViewController:self.boardV­iew animated:YES];

    }

  • Do you have the source code for this ?

  • are you robot

  • Nice tutorial, thanks a lot! It really helped me to fastly start making my own application with this schema. I don't know how much time I would spend figuring out how to make this magics. The white background looks really clean. Nice voice and good quality of tutorial.

  • beautiful voice or not, the video quality sucks big time

  • thanks a lot, this is really helpful

  • Realy good tutorial :)

  • That's a cool video #UN#.

  • Thank you for this very helpful tutorial. It's great to know there are other women out there who are serious about coding.

  • Wow, your voice! The first normal girl that is into programming!

  • Okay Forget everything I said - I was able to figure it all out, but now I am stuck on one thing and it looks like many others have had this problem! Obviously all book are not going to have the same description... thus how can a make it so each detail can be different??

    This really has been the best tutorial out there that I have found! If I could get this last thing I would be set!

  • Hey can anyone see what is being written right at moment 25:17 = its the small red writing that I cannot make out.

  • Hey everyone I am running into problems at minute 19:55 with it sawing 'setText' is deprecated - this is the code // Configure the cell... NSUInteger row = [indexPath row]; cell.text = [tradesArray objectAtIndex:row]; return cell;

    any ideas for what I need to be entering???

  • it's deprecated, change to  this:

    [cell.textLabel setText:[booksArray objectAtIndex:row]];

    Cheers!

  • Excellent tutorial. Is that possible to load the books list from a text file in the resources folder?

  • Nice Tutorial.Finally made it with work with Xcode 3.2.5 (64) and iPhone 4.2 Simulator.

    Thanks Elisabeth..

    Meanwhile Nice Voice too

  • I need to update this for XCode 4! I'll get to it soon, I hope! Thanks everyone.

  • Tip: on xcode 4, do not put a "NIB Name" under the view controller, it makes the app crash

  • @Colton328 - Hey, I have the whole thing done and it works great except when I try to click on any of the lists - it is then that the app crashes, where to I take off the "NIB Name" like you said?

  • @Colton328 SOOOOOO HELPFUL! this comes up around 8:50

  • thank you mamma, this is exactly what i was looking for. it helps me a lot.

  • @Draffo3, NumberOfSectionsInTableView returns 0 as default in xCode 4 (Not keen!!) so change that to a 1 for a single segment table!

  • Beautiful Voice !

  • A tutorial with the voice of an angel? sweet!!

  • @draffo3, check that in the following code:

    - (NSInteger)numberOfSectionsInT­ableView:(UITableView *)tableView

    { // Return the number of sections. return 1;

    }

    that the return is set to 1, mine defaulted to 0.

    PS: I followed this tutorial with Xcode 4 as well.

    Good Luck

  • I've followed this using Xcode4 but when I try to load the table view nothing is displayed, I can change the background colour to black and it displays however no data displays, I've put NSLogs in my BookTableViewController.m and the viewDidLoad method runs but the numberOfRowsInSection and cellForRowAtIndexPAth methods never get called, anyone any ideas as to why this might happen?

  • Hi guys. How do we add data under TableView Cells? Any idea?

  • I LOVE YOU!

    Thanks!

  • Awesome job!

  • Thank you. Thank you. Thank you.

  • @hiro232323 Hi Hiro.. I found the way to create TableViewController under NavigationBarController. If you still need help I am happy to help you. Thank you..

  • For this i looked all the Time!

    Thank you!

  • I literally love you. Actually.

  • WOW - all I can say.

    I don't think you know how much this has helped me!!!!!!

  • I don't care at all about the text on an about bar. I just want to see the association between an tab bar and a nav bar. Make this more direct. You must've spent more than 10 minutes messing with things that just didn't need to be included. Also, this video was extremely dry (though, yes, easy to listen to voice), and some strategic zooming would have been nice.

  • @bluescentric Someone puts up a free video and you say that it is DRY???WTF?? Don't watch this, then!! And if you want to learn specific stuff, try opening a book.

  • GET,'◜A`.,IPHONE‵.,FREE‵.‵

    www․IPHONE4UFREE․TK

    

  • @hiro232323 I am still working on it. Please,let me know if you find a solution..Thank you..

  • You have a very nice voice. You should continue to teach these tutorials because you're very peaceful and that helps lower my stress when learning this complicated app stuff :). Anyways, thank you for your time and hope to learn more from you.

  • @sora1201 and @Tusharchutani

    Thank you very much for your help guys. It works perfectly. Now I work with Xcode 4 and it is kind of different. The problem now is whenever we create BooksNavController under TabController for two items it does not have a option to change ViewController to BookTableViewController. Any of you has a problem with that?

    Thank you..

  • @bilginnyc I have the same Problem. Did you find a solution?

  • what a sexy voice :x

  • You have a really nice voice and way of teaching.

  • at 7:12 when I try to resize About View window it would not let me resize. Any suggestions to fix this? Thanks..

  • @bilginnyc hit command + 1 and set everything to unspecified except the first one

    hope that helps

  • @bilginnyc All you have to do is get rid of the status bar by going to the view attributes in interface builder, and under "simulated user interface elements" change Status Bar to "none". And then it will let you change the size.

  • I m a great fan of "You"...

    Your voice...

    Your way of teaching...

    Your guidance..

    Your way of inspiration... and and and

    Keep it up...!!!

  • Even though i've been trying it 7 times now, i stille can't seem to seperate the two windows. There is no difference, whether i press the about button or the books button. It only shows the about view.

    Anyone else experiencing this with Xcode 4?

  • Great video thanks! Just one issue; the navigation function only works once. The app opens, I click on a book, it takes me to the book detail view. I can then go back to the main book screen, but am unable to click on another book and be brought to the book detail screen. I have to re launch the app to be able to click and be brought to the detail screen. Anyone else experience this issue?

  • awsome and very helpful video tutorial, it fixed my problem i have worked on a long time. thank you so much for posting this video , Cheers !!!

  • very helpful

    very awesome video

    worked nice

    thanx for posting.

  • I put this on when I go to sleep

  • @Veritian thats really weird

  • Is anyone got that working with Xcode4? I just spent the whole night trying figuring out, but I just don't find the way to do it!!

  • Awesome video. Occasionally, a little fast, but for the most part perfect for a newcomer to iPhone development. Thanks!

  • Can I get the source code? I am having some major issues. It was a great tutorial, but when you said to run it it is giving me errors. I have tried alot of stuff to try and fix , but it isn't working. (I am running the new 4.2 SDK if that has anything to do w/ it)

  • @mariobrawlers08 mine worked perfectly

  • Comment removed

  • at 2:10 you wrote "IBOutlet UITabBarController *rootController"

    Do You Have To Put The IBOutlet?

  • Thank you much! I was stuck for a bit until I found your video. And I agree with the other posters, you definitely have a very nice and pleasant voice to listen to :)

  • nice.....

    but can u help me out ?? i have a tableview in the frist tab and a textfield in the second, how do i add the text from that textfield to the tableview??

    Rene Skov

  • Excecellent tutorial

  • Thank You Elisabeth. Great Tuorial.

  • Not on! Mac Rules! Go to the store and get one so you're happy! If you want to work in PC use ANDROID and an Andriod phone...not happy!

  • sucks you have to buy a mac to build and upload an app to itunes wish it were possible on a pc

  • @wendygroth I'm doing it on VMware.

  • I have just worked thru the last section from 23.30 and at the end on Build and Run I have errors in the DetailViewController.

    -No declaration of property...

    -Wrong type argument to unary minus

    -Expected ';' before ';' token

    The problem is it is extremely difficult to read what is being typed.

    >>>>> Is this code available??

    Frustrated but working on it!

    Thank you.

  • One other thing...if you can not change the height it is because you need to get rid of the STATUS BAR. Make it Status Bar "Unspecified". The window becomes editable. This is using Xcode 3.2.5

  • Where exactly is this occurring? Is the vid doing this wrong and is different when using the latest version? Thank you.

  • I'm having a problem linking the Booksnavcontroller to the selected books nav controller (at 13:33) it won't allow me to link it to it.. what am I doing wrong? I have redone this guide 3 times and still get stuck at this point..

  • Great tutorial. Only one problem...when I Build and Run the view goes back to the desktop. Any clues as to what i have done wrong?

    Thank you!

  • Thumbs up if you want the same voice as her's. :D

  • Hi Elisabeth. This is a really great tutorial. I'm a total beginner to programming and app development and was able to follow your instructions to get the exact simulated app. 90,000 views later you must have had a few help requests; is there any chance of another video to demonstrate how to create a second level within the table view (click on a cell in table view and bring up another table) for some cells, and a text subview for others? Or do you know where I can find this out? thanks

  • at 480p this tuturial is useless

  • btw you need to add at minute 27:00 before the last } this line to refresh the detail view each time you enter it :

    bookDetailViewController=nil;

    but in total. great tutorial :)

  • I keep receiving an error about the NSLocalizedString stating, " Expected ';' before 'NSLocalizedString'. I'm pretty new to this, but I've attempted somethings and nothing has worked. I could use some help. Thanks.

  • @HCSkaTer003 Well I was able to solve my own problem, but now when I click on the options my app just crashes. Anyone have any resolutions?

    

  • Great, very useful.

  • I dont post comments too much. but for this tutorial, I really have to say : Thank you very much for the Great tutorial

  • Thanks - great tutorial.

  • Hi I watched your youtube video on how to use Xcode for making iphone apps; I like your video and I think you are a good teacher and I am now trying to make my own iphone apps now; but I need your help. I would like to know how to make an iphone app like this. PLEASE TYPE IN YOUR IPHONE 'EGW FREE'

    Please let me know how I can make this type of iphone app, I would be much happier if you did a video tutorial.

    Regards

    7appls1

  • thank you :) excellent tutorial, exactly what I was looking for!

  • Great tutorial! :) thanks a lot!!!

  • How can I change the color of the navbar at the top (from the default blue)?

  • @EEngenious

    self.navigationController.navi­gationBar.tintColor = [UIColor blackColor];

    for black...

  • I'm getting 2 errors and 4 warnings on my BooksTableViewController.m file. Is the source code somewhere so I can compare to what I have. I'm following along so I don't know what I have done wrong.

  • @rynoesco If you are still interested, go to BooksTableViewController.m and find the "numberOfSectionsInTableView" and "tableView" methods - they both return invalid information - just return a number for each of them for now - 1 for each should work.

  • Great Job!

    Thank you very very much it simple solved my problems

  • BTW you dont have to create new files for the navigation controller. Just list is as UINavigationController *navigationController in the appDelegate, leave its identity as is in the main window and link it to appDelegate as an outlet, and use delegate.navigationController in DidSelectRowAtIndex. No point in having extra empty files floating in your classes folder.

  • Great Tutorial. Was very helpful for me, building my Navigation Structure!

  • NONE SENSE

  • GHKJ

  • Comment removed

  • First of all, congratulations for this GREAT tutorial.

    Could you recommend some book to follow for a newie like me?

    This is the best video tutorial ever.... So helpfull!

  • Thanks it took me a while but I finally got it running this has been very helpful

  • I cannot say enough. Thank you!

  • This is absolutely amazing. I've been trying to do exactly this for a while and had no luck. Thanks you!!!!!

  • That is just perfect! Thanks a lot!!

  • Thank you! You explained how all these views can interact together very clearly. Much appreciated. You also have a very lovely voice :)

  • that was really helpful however I would like to change the XIB on my tabbarcontroller without loosing tab bar. can change it ok but loose tabbar controller.

    Your explanations and pace of tutorial was excellent and easy to follow.

  • Holy moses. Someone bring it back down to earth please! I just want to understand the app objects, classes etc. etc. Perhaps I should hop on to a previous post. the newboston is great too but damn, clear up the fog.

  • I like your explanation of your tutorial but could you make your video images a little clearer, it's blurry

  • why does the tab bar controller need to be the root view controller?

  • Thanks! I've been fighting for hours to get this setup the right way. Now it works and more importantly: I understand why it works :)

  • Why would you say IBOutlet for both the private object and it's property? :/

  • Hi, I get a blank screen the first time I am able to 'build and go'. It builds ok with no errors. It will show the iphone simulator ok, only when I go into the App I see a black screen. I noticed a few others have had this but managed to fix it. Can anyone help?

  • Hi Elizabeth and Jeremy who just put a comment 38 minutes ago I succeeded with all the code but it is not running even though the code has succeeded. The code was double checked against Elizabeth's code and there is a perfect match. Possible it is linking which is done in IB. Any ideas?

  • Truly excellent (and accessible) walkthrough, saved me tons of time and headaches today.

  • Very good!! Excellent!!

    but I had to replace some stuff for the detail view, I just used (with different names);

    if(detailViewController == nil) detailViewController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];

    [self.navigationController pushViewController:detailViewC­ontroller animated:YES];