Skip to content

Commit

Permalink
Fixed bug in UIViewController+FKLoading when viewToReplace isn't dire…
Browse files Browse the repository at this point in the history
…ct subview of viewController.view
  • Loading branch information
myell0w committed Sep 22, 2011
1 parent 037fe14 commit 8e67218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UIViewController+FKLoading.m
Expand Up @@ -74,7 +74,7 @@ - (void)showLoadingIndicatorInsteadOfView:(UIView *)viewToReplace {
viewToReplace.alpha = 0.f;
self.replacedObject = viewToReplace;

[self.view addSubview:activityView];
[viewToReplace.superview addSubview:activityView];
[activityView startAnimating];
}

Expand Down

0 comments on commit 8e67218

Please sign in to comment.