0

アプリの起動時に、rootViewController を NavigationViewController にしてから、最初の画面に PFQueryTableViewController を表示します。PFQueryTableViewController の代わりに単純な TableViewController を使用している別のプロジェクトでもまったく同じコードを使用しています。PFQueryTable は TableViewController と同じように機能すると思いましたか?

これは私にエラーを与えているコードです(注:これは私の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;
}

ご協力いただきありがとうございます

4

0 に答える 0