rnystrom / RNSwipeViewController

Swipe in view controllers from off-screen similar to Check the Weather.
MIT License
293 stars 50 forks source link

Calculation of Height with navigation bar #5

Open vladimirvrabel opened 11 years ago

vladimirvrabel commented 11 years ago

Hi,

in RNSwipeViewController in viewDidLoad height should be calculated according to existing/ not existing of navigation bar. Something like this: frame.size.height = self.view.frame.size.height - self.navigationController.navigationBar.size.height. You can replicate problem, when you create a button in bottom of centerView. This button will not showed - it will be under of frame bottom boundary.

tested in iOS 6.1 simulator, xcode 4.6.2