ios8 - UITextField becomeFirstResponder block animation -


I want to show a scene in which there is a UITFixified, and I see a keyboard with my messageFast Responder iOS7 Along with, there is no problem. But since IOS 8, this does not work, I'm configuring this type of view:

  - (zero) showViewAddScore {if (! Self.viewPopOver) {// L. Initialization de la Poewi, self.viewPopOver = Design on the Design Le Conte [[Self.view View DetailsTags: 100]; Self.viewPopOver.layer.cornerRadius = 8; Self.viewPopOver.layer.masksToBounds = Yes; Self.viewPopOver.layer.borderWidth = 1; Self.viewPopOver.layer.borderColor = [[UIColor colorWithRed: 8.0 / 255 green: 65.0 / 255 blue: 32.0 / 255 alpha: 1] CGColor]; } // transfer de la wind CGP point; Point.x = self.viewPopOver.frame.origin.x; Point.y = 300; [Self-managed view popovers: self.viewPopOver withCGPoint: point]; [Self. Firstfinder to become Testfield AdScoker]; WithCGPoint: (CG point) point {[UIView Animation: 0.3 Delay: 0.1 Option: UIViewAnimationOptionCurveLinear Animation: ^ {CGRect frame = view.frame; Frame.origin.y = point.y; Frame.origin.x = point.x; View.frame = frames; } Completion: zero];  

}

The problem is: When I first call the method showViewAddScore , the keyboard is showing but the view is not visible. When I call the method a second time, the scene is visible. And when I delete the line [self.textfieldAddScore Becoming First Responder] , the scene is visible when I call the method for the first time. Therefore, [self.textfieldAddScore beFirstResponder]; And there is a problem with the animation I have tried to move the line after the animation, but the problem persists.

Thank you for your help.

Using the tool you can see that the first 6 hours + device But to become the main bag for a big time, the first is the main bag of Responder Hijack. What you can do to initialize the "fake" text view in your app representative:

  // Load before the keyboard so there is no interval on the initial keyboard appearance. Go lagFreeField: UITextField = UITextField () self.window .addSubview (lagFreeField) lagFreeField.becomeFirstResponder () lagFreeField.resignFirstResponder () lagFreeField.removeFromSuperview ()  

or wait until your UI is working Used to call the first responder who was created primarily on the block being completed. I later chose the option of not messing up app deligit and is the first "hackee" solution.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -