Viewcontroller *vcobj = [[Viewcontroller alloc] Initwithnibname:nsstringfromclass ([Viewcontroller class]) Bundle:nil] ;
Uinavigationcontroller *navcon = [[Uinavigationcontroller alloc] initwithrootviewcontroller:vcobj];
if ([[Uidevice currentdevice].systemversion Floatvalue] >= 8.0) {
Navcon.providespresentationcontexttransitionstyle = YES;
Navcon.definespresentationcontext = YES;
Navcon.modalpresentationstyle = Uimodalpresentationovercurrentcontext;
[Self Presentviewcontroller:navcon animated:no completion:nil];
}
else {
Appdelegate *appdelegate = (appdelegate *) [[uiapplication sharedapplication] delegate];
[Self Presentviewcontroller:navcon animated:no completion:^{
[Navcon Dismissviewcontrolleranimated:no completion:^{
AppDelegate.window.rootViewController.modalPresentationStyle = Uimodalpresentationcurrentcontext;
[Self Presentviewcontroller:navcon animated:no completion:nil];
AppDelegate.window.rootViewController.modalPresentationStyle = Uimodalpresentationfullscreen;
}];
}];
}
IOS pop-up modal transparent Viewcontroller