ios - Storyboard viewcontroller is opening? -
when click login button want open home viewcontroller in app,but before somedays working not working ,when click login send user details server , give 1 server output .from out put if "login" want move home viewcontroller .iam using preforsegue method next viewcontroller viewcontroller id "app" , segue id "app". code used move next viewcontroller @ login.now not working..
inside login button :this after sending url post method..then following code execute
[nsurlconnection sendasynchronousrequest:request queue:[nsoperationqueue mainqueue] completionhandler:^(nsurlresponse *response, nsdata *data, nserror *error) { nsstring * serveroutput= [[nsstring alloc]initwithdata:data encoding:nsasciistringencoding]; nslog(@"%@",serveroutput); if(serveroutput!=null) { if([serveroutput isequaltostring:@"login"]) { [self getdetails]; [self performseguewithidentifier:@"app" sender:self]; } if(app) [self performseguewithidentifier:@"app" sender:self]; [_alertview dismisswithclickedbuttonindex:0 animated:yes]; } } ]; _alertview = [[uialertview alloc] initwithtitle:@"please wait..." message:@"\n" delegate:self cancelbuttontitle:nil otherbuttontitles:nil]; uiactivityindicatorview *spinner = [[uiactivityindicatorview alloc] initwithactivityindicatorstyle:uiactivityindicatorviewstylewhitelarge]; spinner.center = cgpointmake(139.5, 75.5); [alertview addsubview:loading]; [spinner startanimating]; [alertview show];
the value of "app" yes when execute [self detail] method
try giving different id segue , view controller. clearly, must have made changes in app somewhere , forgotten it. check storyboard connection also. try deleting segue , given again.
Comments
Post a Comment