I want to know how to detect when a UISearchBar has completed animating. In iOS7, when you tap on some searchbar, the magnifying glass will shift from center to left. When endEditing becomes true, the magnifying glass then shifts back to center. I want to remove the searchbar from my UINavigationItem once the latter mentioned animation completes.
Other related SO suggestions did not seem to apply to animations of standard UIKit items... These suggestions include use of:
(void)animationDidStop:(NSString*)animationID finished:(BOOL)finished context:(void *)context
or
while([[self.view.layer animationKeys] count] > 0)
Thank you for your help!