ios - resizing UIPopoverController to fit UITableController -


i have uipopovercontroller has uitablecontroller in it. init elements , want present popover, @ time uitable not know size, cant set size of uipopover

also i'm not sure else can set size of uipopover after uitable knows size (i can try hack inside cellforrowatindexpath ugly can

any ideas ?

i tried define didview* methods, none of them called maybe because view inside popover

thanks

before show popover, call [table reloaddata]. force table calculate size. use [table contentsize].

also note can calculate size of table yourself. if know data , height of rows/headers/footers, it's simple matter of multiplication & addition.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -