Skip to content

Commit bb480b1

Browse files
committed
change showInSuperView to uiwindow
use uiwindow to cover status bar
1 parent 90151ca commit bb480b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Example/ContextMenu/ViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ - (IBAction)presentMenuButtonTapped:(UIBarButtonItem *)sender {
8888
}
8989

9090
// it is better to use this method only for proper animation
91-
[self.contextMenuTableView showInView:self.navigationController.view withEdgeInsets:UIEdgeInsetsZero animated:YES];
91+
// [self.contextMenuTableView showInView:self.navigationController.view withEdgeInsets:UIEdgeInsetsZero animated:YES];
92+
[self.contextMenuTableView showWithAnimated:YES];
9293
}
9394

9495
#pragma mark - Local methods
@@ -143,4 +144,4 @@ - (UITableViewCell *)tableView:(YALContextMenuTableView *)tableView cellForRowAt
143144
return cell;
144145
}
145146

146-
@end
147+
@end

0 commit comments

Comments
 (0)