iOS: magical scrolling enabled when needed in feed detail menu popover

This commit is contained in:
David Sinclair 2016-02-08 19:52:58 -08:00
parent 80ebc15584
commit a8d701d2c7

View file

@ -96,6 +96,7 @@
NSInteger menuCount = self.menuOptions.count + ([self isRiver] ? 2 : 3); NSInteger menuCount = self.menuOptions.count + ([self isRiver] ? 2 : 3);
self.navigationController.preferredContentSize = CGSizeMake(260, 38 * menuCount); self.navigationController.preferredContentSize = CGSizeMake(260, 38 * menuCount);
self.menuTableView.scrollEnabled = self.navigationController.preferredContentSize.height > self.view.frame.size.height;
} }
- (void)buildMenuOptions { - (void)buildMenuOptions {