I am using UIImageView based animation to show a user activity indicator. To set this parameter, the following code answers:
+ (void)startLoadingActivity:(UIViewController *)vc { vc.parentViewController.navigationItem.titleView = [UIImageView imageViewWithPath:@"loading_" count:10 duration:1.3 frame:CGRectMake(0, 0, 22, 22)]; }
Here's the gist in the UIImageView + Animation category.
When I start a web request, I start the activity indicator, and whenever the request is executed, I stop it by setting the titleView property to nil .
The result is the following:

The request method is also called in the -viewDidAppear: view controller method.
However, whenever the animation starts during the transition, it seems that the position of the UIImageView is incorrect.
The following result shows the problem:
Notice that the activity indicator appears at the top of the Groups button.

Where does this problem come from? How can I solve it?
source share