ios - performSegueWithIdentifier method is very slow for modal segue -


i have show registration view controller. screen loaded uiwindow.rootviewcontroller method,which don't solution.

after google search found this question, doesn't me @ (problem stays), have ask, there other solutions.my code follows:

-(void)viewdidappear:(bool)animated {   [super viewdidappear:animated];   if(![class isuserregistered]){     [self performseguewithidentifier:@"" sender:self];   } } 

registration controller shows after 5-7 seconds (iphone 4, 7.1.2)

one possible option use adaptive segue-s, not possible @ moment.

i notice, when remove outlets storyboar, view loading faster.

any thoughts?

try this,

dispatch_async(dispatch_get_main_queue(), ^{     //this block of code executed on main thread, ui operations should done on main thread     [self performseguewithidentifier:@"" sender:self]; }); 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -