xcode - Segue don't present view on iOS7 -
i have noticed odd behavior on ios 7.x, have "navigation controller" has set home of app "rootview controller".
also, have view allows select database through "uitableview". after that, home start download of database.
when app launches, first thing showing page of database selection. after that, in different views of app, there buttons allow deselect database.
the problem works great on ios 6.x, while doesn't on ios 7.x i'll list below code utilize this, opportune comments.
-(void)viewwillappear:(bool)animated { [super viewwillappear:animated]; if ( [bridge needjump] ) {//controllo il flag per forzare il salto alla schermata di scelta del db [self performseguewithidentifier:@"goseldb" sender:self]; } else { hud = [[mbprogresshud alloc] initwithview:self.view]; [self.view addsubview:hud]; hud.delegate = self; if ([bridge firsstart])//controllo il flag del primo avvio { if([bridge checknetwork])// { [self downloaddbwithurl:[bridge getdburl] anddestinationname:@"ristorante.sqlite"]; } else { [self fillfield]; uialertview *al=[[uialertview alloc] initwithtitle:@"errore:" message:@"per usare questa applicazione devi essere connesso internet." delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil]; [al show]; } [bridge setfirst:no]; } else { [self fillfield]; } } }
you should nowadays viewcontroller (perform segue) after presenting viewcontroller view has been appeared . stuff in viewdidappear: method.
xcode cocoa-touch ios7 segue
No comments:
Post a Comment