I use the UIPopoverPresentationController in my application to show a popover on my iPhone (with UIModalPresentationNone). I want the size to be dynamic with the height of a UITableView, but I cannot find out how to do this. The size of the popover is the same on every device.
In the class you represent in popover, add the code:
- (void)viewDidLayoutSubviews { self.preferredContentSize = CGSizeMake(320, tableView.contentSize.height); }
Source: https://habr.com/ru/post/1207398/More articles:Input error: com.google.appengine.devappserver.DevAppServerRunner? - javaTinyMCE 4 add dropdown menu to menu bar - javascriptExtract a list of generators in a circular fashion - pythonIonic name name does not work - angularjsCloudKit: Is it possible to create a user zone in a public database? - icloudGet AST from .Net assembly without source code (IL code) - roslynTesting Symfony2 emails with Behat 3 - swiftmailerSplit multi-line block on one chart in pandas or matplotlib? - pythonLogicException: Missing default data in Symfony \ Bundle \ SwiftmailerBundle \ DataCollector \ MessageDataCollector - swiftmailerHighlight partial HTML string in Angular.js - javascriptAll Articles