iphone - PushViewController Leads To Black Screen -
settingsviewcontroller *viewcontroller = [[settingsviewcontroller alloc] init]; [[self navigationcontroller] pushviewcontroller:viewcontroller animated:yes];
when using code in navigationcontroller scene shown black screen. in storyboard shows content not displayed on phone.
try this:
uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard" bundle: nil]; settingsviewcontroller *viewcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"setting"]; [self.navigationcontroller pushviewcontroller:viewcontroller animated:yes];
set settingviewcontroller's identifier "setting"
iphone objective-c xcode
No comments:
Post a Comment