2013-08-22 38 views

回答

3

你需要在故事板的獨立觀點(登錄或註冊視圖)。如果用戶未登錄,您將顯示:

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

幾乎與您使用的方法相同。

+0

非常感謝! –

+0

@EvanStoddard歡迎您。 –

+0

它實際上將成爲一個表視圖控制器,因爲它是一個靜態表視圖與堅實的元素。那它還能工作嗎? –

相關問題