Commit fdd1e3e8 authored by Gleb Pinigin's avatar Gleb Pinigin

Limit menu & open network controllers size in popover

parent 3f8fcb1d
......@@ -65,6 +65,7 @@
self.scrollView.contentSize = self.view.frame.size;
}
[self.aboutButton setTitle:NSLocalizedString(@"ABOUT_APP", @"") forState:UIControlStateNormal];
[self.openNetworkStreamButton setTitle:NSLocalizedString(@"OPEN_NETWORK", @"") forState:UIControlStateNormal];
[self.downloadFromHTTPServerButton setTitle:NSLocalizedString(@"DOWNLOAD_FROM_HTTP", @"") forState:UIControlStateNormal];
......@@ -79,6 +80,10 @@
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
}
- (CGSize)contentSizeForViewInPopover {
return [self.view sizeThatFits:CGSizeMake(320, 800)];
}
- (void)netReachabilityChanged:(NSNotification *)notification
{
if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
......
......@@ -62,6 +62,10 @@
[super viewWillDisappear:animated];
}
- (CGSize)contentSizeForViewInPopover {
return [self.view sizeThatFits:CGSizeMake(320, 800)];
}
#pragma mark - UI interaction
- (IBAction)openButtonAction:(id)sender
{
......
Markdown is supported
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