ios - Presenting view controllers on detached view controllers is discouraged -


i trying move new view controller current view controller using following code this

self.loginview = [self.storyboard instantiateviewcontrollerwithidentifier:@"login"]; [self presentviewcontroller:self.loginview animated:no completion:nil]; 

this code works fine ios 8 in ios 7(iphone) not working. can me rid of error?

please try use [self.view.window.rootviewcontroller presentviewcontroller:self.loginview animated:no completion:nil];


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -