0

我如何检查真假,因为这不是

 BOOL *isLoggedIn = [[NSUserDefaults standardUserDefaults] boolForKey:kSignedInBool];
BOOL *userSignedUp = [[NSUserDefaults standardUserDefaults] boolForKey:kHasUserEverSignedUpBool];

if(userSignedUp == NO || isLoggedIn == NO) { // they don't have an account so can't sign in.

    //Show the modal opening screen path

    [self performSegueWithIdentifier:@"showOpeningScreen" sender:self];

} else { //

    // We have signed up before so findNearbyamulanes
    [self performSelector:@selector(findNearByAmbulances) withObject:nil afterDelay:4.0];
}
4

1 回答 1

10

您不应该使用具有原始数据类型的指针。

更改BOOL *BOOL

编辑:指向指针的(有点荒谬但有用的)视频的强制性链接。

于 2013-06-10T23:01:58.887 回答