Permalink
Browse files

Fixed bug in UIViewController+FKLoading when viewToReplace isn't dire…

…ct subview of viewController.view
  • Loading branch information...
1 parent 037fe14 commit 8e672185be49b575bd850bfecdafe3490777696f @myell0w myell0w committed Sep 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 UIViewController+FKLoading.m
@@ -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];
}

0 comments on commit 8e67218

Please sign in to comment.