I want to animate the position of a UISearchBar, but there\'s no animate effect when I change the frame or bounds property of UISearchBar(center, alpha dose animate).
Use the UIViewAnimationOptionLayoutSubviews option:
UIViewAnimationOptionLayoutSubviews
[UIView animateWithDuration:.25 delay:0 options:UIViewAnimationOptionLayoutSubviews animations:^{ CGRect frame = searchBar.frame; frame.size.width = newWidth; searchBar.frame = frame; } completion:nil ];