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

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

c# - Call C++ Native DLL in Managed Code -