Learning iOS Development Part 16 (Storyboards)
Uploader Comments (azamsharp)
All Comments (16)
-
@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;
-
- 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.
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 2 months ago 3
@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 2 months ago
@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 1 month ago
@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!
azamsharp 1 month ago