I don't understand how firstNameTextField and lastNameTextField magically have the contents on the UITextFields from the Storyboard. What am I missing?
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.firstNameTextField set to %a", self.firstNameTextField );
@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
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.
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.
@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.
@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!
When I create a CustomerViewController it looks nothing like yours. Can you post source code anywhere so at least I can follow along? I noticed that allot of these tutorials do not have source code with them making it real hard to follow along if you forget to do something in the video.
Or perhaps you can create a tutorial to fill in the missing steps?
Great series has helped me understand some things. This might be a stupid question because I'm totally new to all of this but between part 15 and part 16, how did the CustomerViewController and AddCusotmerView Controller get in? Is it something that gets automatically created when you create another view or do you have to make it from file>new file>uiviewcontoller subclass? I'm using xcode 4.2. and can you post links to sample code? Thanks
I also don't understand how the "Save" button calls the "save" method. Is that build-in functionality, or am I missing something?
elarsix 2 hours ago
I don't understand how firstNameTextField and lastNameTextField magically have the contents on the UITextFields from the Storyboard. What am I missing?
elarsix 2 hours ago
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.firstNameTextField set to %a", self.firstNameTextField );
murraypoopchin 4 weeks ago
@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
murraypoopchin 4 weeks ago
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.
iapple8037 2 months ago
@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;
murraypoopchin 1 month ago
You are a teacher who is in my dream. thank you so much Mohammad.
metin750 2 months ago
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 ?
robertlam18 2 months ago
went through it several times but still don't understand how to pass variable between views.
robertlam18 2 months ago
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 2 months 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 2 months ago
@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
murraypoopchin 1 month ago
- 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
murraypoopchin 1 month ago
When I create a CustomerViewController it looks nothing like yours. Can you post source code anywhere so at least I can follow along? I noticed that allot of these tutorials do not have source code with them making it real hard to follow along if you forget to do something in the video.
Or perhaps you can create a tutorial to fill in the missing steps?
Thanks
tree502 2 months ago
Great series has helped me understand some things. This might be a stupid question because I'm totally new to all of this but between part 15 and part 16, how did the CustomerViewController and AddCusotmerView Controller get in? Is it something that gets automatically created when you create another view or do you have to make it from file>new file>uiviewcontoller subclass? I'm using xcode 4.2. and can you post links to sample code? Thanks
aleemam123 3 months ago in playlist More videos from azamsharp
Excellent series! Thanks for taking the time to put it together.
dgsomething1 3 months ago in playlist More videos from azamsharp