开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜