Skip to content

Commit

Permalink
Update MGSpotyViewController.m
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Gobbi committed Mar 11, 2016
1 parent c1e0e70 commit 301fa61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MGSpotyViewController/MGSpotyViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@ - (void)loadView

- (void)setOverView:(UIView *)overView
{
_overView.frame = overView.frame;

UIView *subView = [_overView viewWithTag:kMGOverviewMainSubviewTag];

if(![subView isEqual:overView]) {
[subView removeFromSuperview];
_overView.frame = overView.frame;
[_overView addSubview:overView];
overView.tag = kMGOverviewMainSubviewTag;

Expand Down

0 comments on commit 301fa61

Please sign in to comment.