0

我正在构建一个应用程序,它需要在应用程序的初始启动时进行注册。我习惯于使用笔尖并呈现它们,但是我将如何以模态方式呈现此视图,然后在注册完成后将其关闭。

最好只在情节提要或单独的情节提要中有一个视图(我假设前者。)

4

1 回答 1

3

您需要在情节提要中有一个单独的视图(登录或注册视图)。如果用户未登录,您将显示它:

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

您使用的方法几乎相同。

于 2013-08-22T20:52:09.113 回答