ios - Poping a view not working in device -


I'm popping up a view with zoom in the zoom out effect. When my app returns to Safari after the login, I am displaying that scene. It's working fine in the simulator but it's not working in the device. Here's my code in the iPad:

  [MyAppDelegate openSessionWithAllowLoginUI: Yes completionBlock: ^ (BOOL result) {NSLog (@ "Connecte thanks via joint page") ; If (results) {NSLog (@ "% @% d", [[NSUserDefaults standardUserDefaults] dictionaryRepresentation], [[NSUserDefaults standardUserDefaults] valueForKey: @ "isSender"] boolValue]); If ([[NSUserDefaults standardUserDefaults] valueForKey: @ "isSender"] boolValue] == 0 & amp; amp; [[[NSUserDefaults standardUserDefaults] valueForKey: @ "isServiceProvider"] boolValue] == 0} {lbl_register.font = [UIFont FontWithName: GZFont Size: 16]; Lbl_serviceProvider.font = [UIFont fontWithName: GZFont Size: 14]; Lbl_customer.font = [UIFont fontWithName: GZFont Size: 14]; SelectionView.center = self.view.center; SelectionView.layer.borderColor = [[UIColor blackColor] CGColor]; SelectionView.layer.borderWidth = 1.0; SelectionView.layer.cornerRadius = 5; SelectionView.layer.masksToBounds = Yes; [UIView animatedDudication: 0.4 Animation: ^ {SelectionView.transform = CGAffineTransformScale (CGAffineTransformIdentity, 1.1, 1.1); } Closing: ^ (BOOL Finish) {NSLog (@ "Populated"); SelectionView.center = self.view.center; [UIView animateWithDuration: 0.4 Animation: ^ {SelectionView.transform = CGAffineTransformScale (CGAffineTransformIdentity, 0.95,0.95); } Closing: ^ (BOOL End) {// self.view.userInteractionEnabled = NO; }]; }]; [Self.view addSubview: SelectionView];    

you try this code

  exploded Background view = [[UIView alloc] initWithFrame: self.view.bounds]; Explosive view = [[UIView alloc] init]; Explosion view = frame = CGRact make (10, 10, 540, 120); [Explosiongramgramsviewframe: self.view.bounds]; Explosion visual: center = cp pointmack (self view center. X, self view center); [Explosion background view setback color color: [UIColor blackcolor]]; [Explosion photo area view set alpha: 0.5]; [Self.view addSubview: Explode background view]; ExplodedView.layer.cornerRadius = 20; ExplodedView.transform = CaffeineTransformationMacecases (0.1, 0.1); UIImageView * imageView = [[UIImageView alloc] initWithFrame: Explosive view Bounds]; [Add Explosive View] SEViewview: ImageView] [Add Self-Situation SUBWeview: Exploded View]; ExplodedView.transform = CaffeineTransformationMacecases (0.1, 0.1); [UIView CheatVirtuality: 0.2 Delay: 0 Option: UIViewAnimationOptionCurveEaseOut Animation: ^ {explodedView.transform = CGAffineTransformIdentity; } Closing: ^ (BOOL Finish) {do something after the animation is over, keep it here}];    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -