Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check this work around. As I mentioned in comments, you can use this as your last option. Not a recommended approach.</p> <pre><code>[UIView animateWithDuration:1 delay:0 options:UIViewAnimationCurveLinear animations:^{ txtNewPhoneNumber.frame = CGRectMake(newXnumber, newYnumber, txtPhoneNumber.frame.size.width, txtPhoneNumber.frame.size.height); } completion:^(BOOL finished) { txtNewPhoneNumber.placeholder = @"here you go!"; [self performSelector:@selector(callSecondAnimation) withObject:nil afterDelay:1.5f)]; //or 0.5f }]; - (void)callSecondAnimation { //animate add textfield button. [UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationCurveLinear animations:^{ [sender setFrame:CGRectMake(btnAddPhoneNumber.frame.origin.x, newYnumber, btnAddPhoneNumber.frame.size.width, btnAddPhoneNumber.frame.size.height)]; txtNewPhoneNumberTitle.frame = CGRectMake(newXtitle, newYtitle, txtPhoneNumberTitle.frame.size.width, txtPhoneNumberTitle.frame.size.height); [btnDelete setFrame:btnDeleteRect]; } completion:^(BOOL finished) { }]; } </code></pre> <p><strong>Update:</strong></p> <p>Try this first,</p> <pre><code>[UIView animateWithDuration:1 delay:0 options:UIViewAnimationCurveLinear animations:^{ txtNewPhoneNumber.frame = CGRectMake(newXnumber, newYnumber, txtPhoneNumber.frame.size.width, txtPhoneNumber.frame.size.height); } completion:^(BOOL finished) { txtNewPhoneNumber.placeholder = @"here you go!"; txtNewPhoneNumber.frame = CGRectMake(newXnumber, newYnumber, txtPhoneNumber.frame.size.width, txtPhoneNumber.frame.size.height);//try setting it here once and then call next one [self callSecondAnimation]; }]; - (void)callSecondAnimation { //animate add textfield button. [UIView animateWithDuration:0.5f delay:0 options:UIViewAnimationCurveLinear animations:^{ [sender setFrame:CGRectMake(btnAddPhoneNumber.frame.origin.x, newYnumber, btnAddPhoneNumber.frame.size.width, btnAddPhoneNumber.frame.size.height)]; txtNewPhoneNumberTitle.frame = CGRectMake(newXtitle, newYtitle, txtPhoneNumberTitle.frame.size.width, txtPhoneNumberTitle.frame.size.height); [btnDelete setFrame:btnDeleteRect]; } completion:^(BOOL finished) { }]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload