ios - Adjust frame of presented view in UIPresentationController after presentation -
i'm using custom presentation controller make similar uialertview
. want move when keyboard shows. in uikeyboardwillshownotification
handler, i'm grabbing new keyboard frame, storing in property, , calling:
self.presentedview.frame = [wself frameofpresentedviewincontainerview];
in implementation of -frameofpresentedviewincontainerview
, take current keyboard height account.
this works perfectly, feels little dirty modifying frame of self.presentedview
directly. tried triggering layout on container view various permutations of setneedslayout
, layoutifneeded
, nothing causes presented view move other setting frame directly.
is there better way change frame myself?
Comments
Post a Comment