Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Learning iOS Development Part 16 (Storyboards)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,030
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 7, 2011

In this screencast Mohammad Azam will demonstrate how to use Storyboards to create the interface of the application. Azam will also demonstrate how to pass values from one view to another using Storyboards.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (azamsharp)

  • I am confused too. All of a sudden there are additional classes with code. How were they created and what is in the code? I wish I could read the code but with the black background it makes it very hard to see the words so I cannot transcribe it. Source code would be very helpful.

    Very hard to follow along and without the missing steps it takes a great tutorial generally useless.

    Thanks anyhow Mohammad

  • @tree502 The AddCustomerViewController and CustomerViewController are simply view controller files. AddCustomerViewController is a subclass of UITableViewController since it uses static UITableCells. After creating these files you simply select the scene from the Storyboard and assign it a particular view controller.

  • @azamsharp Exactly!!!!! how to assign storyboard to the view controller. That's what I came to this video for but you have skipped it....

  • @robertlam18 Hi, Just select the Storyboard story. When you select it a blue rectangle will appear on all the edges. Now, in the properties windows (window in the right pane) set the class to your custom view controller. Simple!

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • @murraypoopchin i uploaded a zip of my Xcode project, as far as i was able to get given the current video, to my minus.com account. min.us/mmHvrGrlr#1o

  • Followed video's code, filling in blanks as best I could. Why is self.firstNameTextField is returning null?

    NSLog says:

    - newCustomer created: -Customer: 0x6c137b0-

    - [self] set to -AddCustomerViewController: 0xca01320-

    - self.firstNameTextField set to (null)

    inside -save method: NSLog(a"newCustomer created: %a", newCustomer); NSLog(a"self set to %a", self ); NSLog(a"self.firstNameTextFiel­d set to %a", self.firstNameTextField );

  • @iapple8037 try putting this in Customer.h:

    @property (nonatomic, copy) NSString *firstName;

    @property (nonatomic, copy) NSString *lastName;

    and this in Customer.m:

    @synthesize firstName, lastName;

  • @robertlam18

    - In Storyboards, select the Customers Table View (so blue border shows up around it)

    - In the Xcode interface, in the right pane window (the Utilities pane) click on Identity Inspector icon at the top

    - Under Custom Class click the drop down menu button, it should now show your AddCustomerViewController and CustomerViewController classes

    - for Customers Table View choose CustomerViewController from the drop down

    - repeat for Add Customer Table View

  • - File > New File

    - choose "Cocoa Touch" > "UIViewController subclass", click NEXT

    - AddCustomerViewController for Class name

    - UITableViewController for Subclass Of

    - uncheck create "Targeted for iPad" and With .XIB file for user interface"

    - click NEXT, click CREATE (saves your class files in the same directory as the rest of your classes)

    - this generates a AddCustomerViewController.h and AddCustomerViewController.m file for you

    - repeat for CustomerViewController

  • I am beginner of programing ,I am learnning transferring data with storyboard in tableview like remainder app.

    I would like to know about customer.h and customer.m .

    what do I have to write in here? I am sorry but I am not good at English so its very helpful with those video . Thank you so much and please continue.

  • You are a teacher who is in my dream. thank you so much Mohammad.

  • you are just typing away without explaining what the object or function is and where it came from e.g. segue.identifier. did you create this ?

  • went through it several times but still don't understand how to pass variable between views.

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