Modal方式显示UIView
+ (void)showModal:(UINavigationController*)parentController
{
static LoginController* sharedController;
static UINavigationController *navigationController;
if(!sharedController)
{
sharedController = [[LoginController alloc] initWithNibName:@"Login" bundle:nil modal:YES];
navigationController = [[UINavigationController alloc] initWithRootViewController:sharedController];
}
[parentController presentModalViewController:navigationController animated:YES];
}
posted on 2011-04-27 13:25 GaryGaryGary 阅读(176) 评论(0) 收藏 举报
浙公网安备 33010602011771号