i know this question had been asked before but after few search i did not find an answer for my query here is the scenario after presenting a view in a modally form the the simulator give me black screen as mentioned here:
here is the code that i am using :
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];
}
i already tried this solution Modal View with Navigation Controller but i got the same result any help guys
Edited for given solution i tried your solution but here is the result
and here is the story board that i use