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

Popular posts from this blog

java - Ebean enhancement ignores a model -

javascript - Reference error while trying to encapsulate an animation function -

SQL php on different pages to Insert (mysqli) -