Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.
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
7 changes: 6 additions & 1 deletion TSPopover/TSPopoverController.m
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ - (void) showPopoverWithPoint:(CGPoint)senderPoint
UIWindow *appWindow = [[UIApplication sharedApplication] keyWindow];
//[appWindow addSubview:self.view];

[appWindow.rootViewController.view addSubview:self.view];
if (appWindow.rootViewController.presentedViewController != nil) {
[appWindow.rootViewController.presentedViewController.view addSubview:self.view];
}
else {
[appWindow.rootViewController.view addSubview:self.view];
}


[UIView animateWithDuration:0.0
Expand Down