ios - IIViewDeck & Double Height Status Bar -


hey noticed bug in iiviewdeck ios (https://github.com/inferis/viewdeck)

if launch app view deck or example app while in-call status bar showing, center view doesn't resize once status bar returns normal height. else logged issue on github (https://github.com/inferis/viewdeck/issues/402)

i've tried listening app delegate callback application:didchangestatusbarframe: , calling self.centerview.frame = self.centerviewbounds; didn't work.

when logged code, saw apparently resizes already

original frame: {{0, 0}, {320, 548}} new frame: {{0, 0}, {320, 548}} after set: {{0, 0}, {320, 548}} ********************* original frame: {{0, 0}, {320, 528}} new frame: {{0, 0}, {320, 528}} after set: {{0, 0}, {320, 528}} ********************* 

i've tried set autoresize property various view, no avail.

i'd fix bug, appreciated. library lot people use, , it'd nice maintain it. i'll sure pass solution onto repo owner

i faced problem. decision was: add observer notification uiapplicationwillchangestatusbarframenotification , set method selector of it.

then, in method create new uinavigationcontroller old view controller (which @ center) rootviewcontroller. , set property centercontroller of instance of iiviewdeckcontrollerclass uinavigationcontroller.

hope helps anybody.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -