ios6 - Determine state of viewcontroller in storyboard -
i'd know how manage this:
i have 4 viewcontrollers in storyboard, each 1 has same class know how determine when change state fullscreen invisible , viceversa. hints?. btw have main view works evernote multiple tabs, , can switch between them want put different return buttons on each view, don't know begin.
you can find out size of window self.view.window.bounds
, test against frame of viewcontrollers' view with:
cgrectcontainsrect(self.view.window.frame, myviewcontroller.view.frame)
this return true if view on screen , false otherwise.
Comments
Post a Comment