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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -