Monday 15 April 2013

ios - App slowness after using UIView Animations -


Then I have an app whose app opens as soon as the app opens. Animation is used by simple UIView animations. Below is a sample of the Viewedload part

  // Frame CGRect SettingsFrame = View Settings; Frame; SettingsFrame.origin.x = -104; SettingsFrame.origin.y = 457; SettingsView.frame = settingsFrame; About frame frame chemistry about CGRact = almost view.frame; AboutFrame.origin.x = -104; AboutFrame.origin.y = 457; AboutView.frame = aboutFrame;   

And here is a related part of the method that is called. CGRT SettingsFrame = SettingsView Frame; SettingsFrame.origin.x = 0; // New X coordinate settingsframe.origin.i = 457; // new y coordinate [UIView start permissions: zero reference: zero]; [UIView Set Animation Duration: 1]; [UIView Set Animation Cave: UIViewAnimationCurveEaseOut]; SettingsView.frame = settingsFrame; About CGRTFremium = frames; AboutFrame.origin.x = 104; // new x directing aboutFrame.origin.y = 457; // new y coordinate [UIView start permissions: zero reference: zero]; [UIView Set Animation Duration: 1]; [UIView Set Animation Cave: UIViewAnimationCurveEaseOut]; AboutView.frame = aboutFrame;

To set the animation, there are 4 more matching sets of code. My problem is that whenever the viewedload portion is enabled (not commented) Slows down the transition. Do you have any idea how I can keep these animations, but there is no slow infection?

In addition, I should say that it is being developed on the iOS 7 and Xcode 5 Developer Preview, so I am not canceling a bug ...

You forgot to add animation at the end of the animation block ... below, you will get the problem fixed.

  CGRT settingsframe = settingsView Frame; SettingsFrame.origin.x = 0; // New X coordinate settingsframe.origin.i = 457; // new y coordinate [UIView start permissions: zero reference: zero]; [UIView Set Animation Duration: 1]; [UIView Set Animation Cave: UIViewAnimationCurveEaseOut]; SettingsView.frame = settingsFrame; ** [UIView commitAnimations]; ** CGRect aboutFrame = aboutView.frame; AboutFrame.origin.x = 104; // new x directing aboutFrame.origin.y = 457; // new y coordinate [UIView start permissions: zero reference: zero]; [UIView Set Animation Duration: 1]; [UIView Set Animation Cave: UIViewAnimationCurveEaseOut]; AboutView.frame = aboutFrame; ** [UIView commitAnimations]; **    

No comments:

Post a Comment