Added: 2 years ago
From: TannerKilgore1
Views: 5,684
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (10)

Sign In or Sign Up now to post a comment!
  • /I create the subclassed View controller, #import "personViewController.h"

    //the xib file is called PersonViewController.xib

    PersonViewController *mPersonViewController = [[PersonViewController alloc] initWithNibName:@"PersonViewCo­ntroller" bundle:nil];

    The code works perfectly. However the xib is outside of my story board. Can you show me how to create this example of red and blue without including the xib.

  • what if you want to pushViewController to an existing ViewController that has been subclass in Xcode 4.2

  • LionViewController *detailViewController = [[LionViewController alloc] initWithNibName:@"LionViewCont­roller" bundle:nil];

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

    When I try to push the View Controller the system errors. What could be wrong? LionViewController is a UIViewController subclass , the View Controller identifier=LionViewController.

  • Thanks you so much you are a lifesaver + a saver of time could have taken me weeks to find this out but has only taken me a couple of hours thank you

  • Thanks Tanner, I've been trying to push different views from cells for 2 weeks (i'm a newbie:), I have many pdf tutorials from professionals but none of them go into this important task (they just tell you how to call one nib file from all cells). Very well explained, i hope you can upload more tutorials on tableviews or database related.

    One quick question.. is it ok to save a large data base using this method? I plan to add about views for each cell, with photos and text.

  • In RootViewController.h I typed everything like you and I get the error: Expected identifier or '(' before ',' token.

    @interface RootViewController : UIViewController, *UITableViewDelegate UITableViewDataSource* { NSMutableArray *array;

    {

    }

    @end

  • Hey! :) In part 2 of this tutorial, the way you show how to add text to the subclass by using IB label is the only way to add text? Can I add it somewhere in the source code?

    Thanks!

  • Try my other channel tckdevelopment

  • Same i really would love the source code , i cant see the code

  • Hey man good tutorial but i click on ur link for source code error 404 not found

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more