When my app starts up I want the rootViewController to be the NavigationViewController and then I want the first screen to display my PFQueryTableViewController. I have the exact same code working on my other project, where instead of PFQueryTableViewController I have a simple TableViewController. I thought PFQueryTable worked the same as a TableViewController?
Here is the code that's giving me an error (Note: this is my AppDelegate)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[Parse setApplicationId:@"myIDisGoingInHere" clientKey:@"myClientKeyIsGoingInHere"];
[PFUser enableAutomaticUser];
PFACL *defaultACL = [PFACL ACL];
[defaultACL setPublicReadAccess:YES];
[PFACL setDefaultACL:defaultACL withAccessForCurrentUser:YES];
self.queryTableViewController = [[QueryTableViewController alloc] initWithStyle:UITableViewStylePlain];
self.navigationViewController = [[NavigationViewController alloc] initWithRootViewController:self.queryTableViewController];
self.window.rootViewController = self.navigationViewController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
Thanks for your help