2016-10-18 7 views

答えて

1

これは、あなたが何をすべきかです:

1:2 Viewcontrollers(プロファイルおよびログイン/レジスタ)

2を作成します:アプリデリゲートdidFinishLaunchingWithOptions見た目では、ユーザーが指していた場合には(、ログイン ある場合私の場合私はinitialVCを宣言しました)このようなログイン/登録画面に彼はおそらく:

if currentUser != nil{ 
self.window?.rootViewController = self.storyboard?.instantiateViewController(withIdentifier: "ProfileViewController") 
}else{ 
self.window?.rootViewController = self.storyboard?.instantiateViewController(withIdentifier: "Login/RegisterViewController") 
} 
+0

ええ!ありがとうございました。しかし、 'Profile'タブ(UITabBarViewController)のためだけに表示する必要がある場合はどうしますか? – woozly

+0

プロファイルに読み込み、ユーザーがログインしているかどうかを確認しますか?そして、そうでなければログインするモーダルをポップしますか? –

+0

これのような何か、yeap。私はサインアップVCを提示する必要があると思う。 – woozly

関連する問題