ios8.3 - Keyboard not resign after resigning it in ios 8.3 -


i resigning text field once response server. on ios 8.3 not resigning keyboard.

here doing .i have resigned text field , after getting response server not getting resign though. , showing me alert , keyboard simultaneously.

its working on ios 8.2

this code

-(void)reciveresponseforemail {     [internetdowntimer invalidate];     [self.emailtextfield resignfirstresponder];  //resign text feild     [activityindicatorutility finishedwaiting];      if ([[responsedictionary valueforkey:@"success"] integervalue]==1)     {         registryconfirmviewcontroller *objregconfirmvc=[[registryconfirmviewcontroller alloc]initwithnibname:@"registryconfirmviewcontroller" bundle:[nsbundle mainbundle]];         objregconfirmvc.signregistrydetailinfodict=(nsmutabledictionary*)[[nsdictionary alloc]initwithdictionary:responsedictionary];          objregconfirmvc.isfromemail=yes;          objregconfirmvc.signregistryaray=[[nsmutablearray alloc]initwitharray:self.serviceobjectarray];         [self.navigationcontroller pushviewcontroller:objregconfirmvc animated:yes];     }     else if (responsedictionary==nil && [responsedictionary count]== 0) //condition apply in case of server failed     {         [self showalertforofflinemode];     }     else     {         float iosversion = [[uidevice currentdevice].systemversion floatvalue];          if (iosversion >= 8.0f)         {              uialertcontroller *alertvc1 = [uialertcontroller alertcontrollerwithtitle:@"alert" message:amlocalizedstring(@"sorry, unable find information associated email.", nil) preferredstyle:uialertcontrollerstylealert];             uialertaction *cancelaction = [uialertaction                                            actionwithtitle:amlocalizedstring(@"ok",nil)                                            style:uialertactionstylecancel                                            handler:^(uialertaction *action)                                            {                                                [alertvc1 dismissviewcontrolleranimated:yes completion:nil];                                                signregistryviewcontroller *objsignregistryvc=[[signregistryviewcontroller alloc]initwithnibname:@"signregistryviewcontroller" bundle:[nsbundle mainbundle]];                                                 objsignregistryvc.returningguestemail=[nsstring stringwithformat:@"%@",self.emailtextfield.text];                                                objsignregistryvc.signregistryarray=[[nsmutablearray alloc]initwitharray:self.serviceobjectarray];                                                 [self.navigationcontroller pushviewcontroller:objsignregistryvc animated:no];                                            }];              [alertvc1 addaction:cancelaction];              alertvc1.modalpresentationstyle = uimodalpresentationpagesheet;             alertvc1.modaltransitionstyle = uimodaltransitionstylefliphorizontal;             [self presentviewcontroller:alertvc1 animated:no completion:nil];         }         else         {             uialertview *alertme=[[uialertview alloc] initwithtitle:@"alert" message:amlocalizedstring(@"sorry, unable find information associated email.", nil) delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil, nil];             [alertme show];         }     } } 

just call in view controller when want hide keyboard.

[self.view endediting:no]; 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -