开发者

How do i show modalViewController or navigationController? (iPhone SDK)

开发者 https://www.devze.com 2023-03-25 03:07 出处:网络
I\'m trying to show a login page for an app I\'m creating but I can开发者_开发问答\'t seem to get the navigation controller to activate.

I'm trying to show a login page for an app I'm creating but I can开发者_开发问答't seem to get the navigation controller to activate.

- (IBAction)startSignin:(id)sender {
    Login *aview = [[Login alloc] init];
    aview.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

    [self.navigationController presentModalViewController:aview animated:YES];
    [aview release];
}

How do i get it to show?


It will never show unless you the view is already added as a subview of UIWindow, which I am assuming is not the case.

0

精彩评论

暂无评论...
验证码 换一张
取 消