Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Edit menu is not showing after zooming in #6

Merged
merged 1 commit into from

2 participants

@paulz

set zoomed in window a key window
restore key window after zooming out

Screenshot 2013 03 03 21 26 56
Screenshot 2013 03 03 21 26 48

See more about Edit Menu at http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/AddingCustomEditMenuItems/AddingCustomEditMenuItems.html

To use Edit Menu with MTZoomWindow lower the window level:

[MTZoomWindow sharedWindow].windowLevel = UIWindowLevelNormal + 1;

as it is set above the status bar by default:
https://github.com/myell0w/MTZoomWindow/blob/master/MTZoomWindow.m#L42

Paul Zabelin make zoomed window a key window
restore key window after zooming out
65ffcfd
@myell0w myell0w merged commit 0556f41 into from
@myell0w
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 4, 2013
  1. make zoomed window a key window

    Paul Zabelin authored
    restore key window after zooming out
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 MTZoomWindow.m
View
4 MTZoomWindow.m
@@ -138,6 +138,8 @@ - (void)zoomView:(UIView *)view toSize:(CGSize)size {
self.zoomedView.frame = CGRectMake((self.bounds.size.width-size.width)/2.f, (self.bounds.size.height-size.height)/2.f,
size.width, size.height);
} completion:^(BOOL finished) {
+ [self makeKeyWindow];
+
id<MTZoomWindowDelegate> delegate = view.zoomDelegate;
if ([delegate respondsToSelector:@selector(zoomWindow:didZoomInView:)]) {
@@ -171,6 +173,8 @@ - (void)zoomOut {
// hide window
self.hidden = YES;
+ [self.zoomedView.window makeKeyWindow];
+
id<MTZoomWindowDelegate> delegate = self.zoomedView.zoomDelegate;
if ([delegate respondsToSelector:@selector(zoomWindow:didZoomOutView:)]) {
Something went wrong with that request. Please try again.