Iphone 在首次应用程序发布时展示特定情节提要/视图
我正在构建一个应用程序,该应用程序在首次启动时需要注册。我习惯于使用NIB并呈现这些视图,但我如何以模式呈现此视图,然后在注册完成后将其取消Iphone 在首次应用程序发布时展示特定情节提要/视图,iphone,ios,storyboard,viewcontroller,Iphone,Ios,Storyboard,Viewcontroller,我正在构建一个应用程序,该应用程序在首次启动时需要注册。我习惯于使用NIB并呈现这些视图,但我如何以模式呈现此视图,然后在注册完成后将其取消 另外,在故事板中有一个视图还是一个单独的故事板(我假设是前者)更好。您需要在故事板中有一个单独的视图(登录或注册视图)。如果用户未登录,您将显示: UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"YourLoginVi
另外,在故事板中有一个视图还是一个单独的故事板(我假设是前者)更好。您需要在故事板中有一个单独的视图(登录或注册视图)。如果用户未登录,您将显示:
UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"YourLoginViewIdentifier"];
[viewController setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:viewController animated:NO completion:nil];
与您使用的方法基本相同。您需要在故事板中有一个单独的视图(登录或注册视图)。如果用户未登录,您将显示:
UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"YourLoginViewIdentifier"];
[viewController setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:viewController animated:NO completion:nil];
与您使用的方法基本相同。它实际上是一个表视图控制器,因为它是一个包含固定元素的静态表视图。那么它还能工作吗?presentViewController。。。是UIViewController的一种方法。UITableViewController继承自它。所以是的,会有用的。很酷的交易。谢谢again@EvanStoddard若答案有帮助,你们应该接受。谢谢。它实际上是一个表视图控制器,因为它是一个带有固定元素的静态表视图。那么它还能工作吗?presentViewController。。。是UIViewController的一种方法。UITableViewController继承自它。所以是的,会有用的。很酷的交易。谢谢again@EvanStoddard若答案有帮助,你们应该接受。谢谢