2013-08-22 37 views

回答

3

你需要在故事板的独立观点(登录或注册视图)。如果用户未登录,您将显示:

UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"YourLoginViewIdentifier"]; 
[viewController setModalPresentationStyle:UIModalPresentationFullScreen]; 
[self presentViewController:viewController animated:NO completion:nil]; 

几乎与您使用的方法相同。

+0

非常感谢! –

+0

@EvanStoddard欢迎您。 –

+0

它实际上将成为一个表视图控制器,因为它是一个静态表视图与坚实的元素。那它还能工作吗? –

相关问题