Commit fdd1e3e8 authored by Gleb Pinigin's avatar Gleb Pinigin
Browse files

Limit menu & open network controllers size in popover

parent 3f8fcb1d
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
self.scrollView.contentSize = self.view.frame.size; self.scrollView.contentSize = self.view.frame.size;
} }
[self.aboutButton setTitle:NSLocalizedString(@"ABOUT_APP", @"") forState:UIControlStateNormal]; [self.aboutButton setTitle:NSLocalizedString(@"ABOUT_APP", @"") forState:UIControlStateNormal];
[self.openNetworkStreamButton setTitle:NSLocalizedString(@"OPEN_NETWORK", @"") forState:UIControlStateNormal]; [self.openNetworkStreamButton setTitle:NSLocalizedString(@"OPEN_NETWORK", @"") forState:UIControlStateNormal];
[self.downloadFromHTTPServerButton setTitle:NSLocalizedString(@"DOWNLOAD_FROM_HTTP", @"") forState:UIControlStateNormal]; [self.downloadFromHTTPServerButton setTitle:NSLocalizedString(@"DOWNLOAD_FROM_HTTP", @"") forState:UIControlStateNormal];
...@@ -79,6 +80,10 @@ ...@@ -79,6 +80,10 @@
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
} }
- (CGSize)contentSizeForViewInPopover {
return [self.view sizeThatFits:CGSizeMake(320, 800)];
}
- (void)netReachabilityChanged:(NSNotification *)notification - (void)netReachabilityChanged:(NSNotification *)notification
{ {
if (_reachability.currentReachabilityStatus == ReachableViaWiFi) { if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
......
...@@ -62,6 +62,10 @@ ...@@ -62,6 +62,10 @@
[super viewWillDisappear:animated]; [super viewWillDisappear:animated];
} }
- (CGSize)contentSizeForViewInPopover {
return [self.view sizeThatFits:CGSizeMake(320, 800)];
}
#pragma mark - UI interaction #pragma mark - UI interaction
- (IBAction)openButtonAction:(id)sender - (IBAction)openButtonAction:(id)sender
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment