Hi. I'm a beginner developer, i'm using a book to learn about development.
I was going through a tutorial on how to build a simple table view application, i followed all of the instructions carefully, i'm only coming up with one error with the following code:
Do you have a variable named "FlowerColorTableViewController" in your .h file? Keep in mind that capitalization matters since you are new to development.
Do you have a variable named "FlowerColorTableViewController" in your .h file? Keep in mind that capitalization matters since you are new to development.
Thanks for the reply, i have two .h files, one is the app delegate and one is the view controller that i created. which one are you talking about and whats a variable? Thanks in advance
Seriously, if u don't know what a variable is, go to the store, grab the nearest book about programming, and read.
U want us to help u, if u can't understand the BASICS of programming, no offense, i want to help newbies, but they have to do an basic effort too..
Seriously, if u don't know what a variable is, go to the store, grab the nearest book about programming, and read.
U want us to help u, if u can't understand the BASICS of programming, no offense, i want to help newbies, but they have to do an basic effort too..
sorry, i found out what a variable is, my view controller file reads:
You need to alloc an instance of FLowerColorTableViewController, and then add that instance's view to your window. CUrrently, you are doing some other hocus pocus.
Code:
- (BOOL)applicationUIApplication *)application didFinishLaunchingWithOptionsNSDictionary *)launchOptions {
// Override point for customization after application launch
FlowerColorTableViewController* vc = // alloc a new one here, either from a xib, or the long way
[window addSubview: vc.view];
[window makeKeyAndVisible];
return YES;
}
You need to create a FlowerColorTableViewController object, then add the object's view as a subview. Currently, you're treating FlowerColorTableViewController as a static class.
You need to create a FlowerColorTableViewController object, then add the object's view as a subview. Currently, you're treating FlowerColorTableViewController as a static class.
Thanks for the help. How would i do this? would i need to go to file>New File?