0

新規インストール用のページがあります。

ユーザーがこのアプリをインストールすると、アプリは必ず「調査」ページに移動します。

これは、デバイス内のXcodeから直接デバッグするときに正しく実行されます。

ただし、ipaファイルを生成してデバイスに同期します。アプリは「調査」ページをスキップして、別のページに直接移動しました。

同期する前に、古いアプリを削除していました。

これがチェックロジックです。それはただのfyiです。

DatabaseAction *getsurvey = [[[DatabaseAction alloc] init] autorelease];
NSArray *survey = [getsurvey retrieveSurvey];
int check;
for(SurveyForm *form in survey){
    check = form.Submitted;
    break;
}

if(check == 1){
    Main_AllLatestNews *GtestClasssViewController=[[[Main_AllLatestNews alloc] initWithNibName:@"Main_AllLatestNews"  bundle:nil] autorelease];
    GtestClasssViewController.autodownload = YES;
    [self presentModalViewController:GtestClasssViewController animated:NO];
}else{
    Menu_newUserForm *GtestClasssViewController=[[[Menu_newUserForm alloc] initWithNibName:@"Menu_newUserForm"  bundle:nil] autorelease];
    [self presentModalViewController:GtestClasssViewController animated:NO];
}
4

0 に答える 0