Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Some support to rotation #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion GKAchievementHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ - (id)init
self = [super init];
if (self != nil)
{
_topView = [[UIApplication sharedApplication] keyWindow];
UIWindow *w = [[UIApplication sharedApplication] keyWindow];
if ([w.subviews count] > 0) {
_topView = [w.subviews objectAtIndex:0];
} else {
_topView = w;
}

_queue = [[NSMutableArray alloc] initWithCapacity:0];
self.image = [UIImage imageNamed:@"gk-icon.png"];
}
Expand Down