我知道這個問題之前已經問過,但幾次搜索後,我沒有找到我的查詢答案這裏是呈現在模態形式的視圖後,模擬器給我這裏提到的黑色屏幕: 如何用導航控制器呈現視圖模型?在對象C
這裏是我使用的代碼:
NSString *username = self.usernameTf.text;
NSString *password = self.passwordTf.text;
if ([username isEqualToString:@"zakaria"] || [password isEqualToString:@"zakaria"]) {
adminViewController *avc = [[adminViewController alloc] init];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:avc];
[self presentViewController:nav animated:YES completion:nil];
}
我已經嘗試過這種解決方案Modal View with Navigation Controller ,但我得到了同樣的結果沒有任何幫助傢伙
*** OR條件***檢查*用戶名和密碼*是***最搞笑***這個問題的一部分... –
您是否嘗試過的解決方案,我有提供? –