ios - Animations during first keyboard appearance is sometimes not smooth -
i have noticed uiview animations not smooth during first becomefirstresponder event when keyboard appears first time. referring animations occur keyboard animation, such manually scrolling uiview create textfield visible. animation smooth after first time executed.
is there technical reason why case? thinking there might lazy loading or optimization happens uiview animations on first run, gets stored in cache reuse. there lessons learned around this? if not clear audience, can seek recreate issue in test project.
while not reply question why happens, explains how prepare it.
why ios animations slow first time run?
basically, need animations on "did" events rather "will" or "should". scheme performs it's animations during "will/should" events, apparently there colluding happening. not explain why behavior inconsistent between first run , other runs.
i thought, may of you, should set animation in "textfieldwillbeginediting" because wanted animation run concurrently keyboard animation. luckily, putting animation code in "did" still ensures animation happens concurrently. fantastic.
if still has explanation of inconsistency between first , latter runs, i'll still hold question open , award upvote , question answer. thanks!
ios animation uiview
No comments:
Post a Comment