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
Post a Comment