ios - Swift 2.3 to Swift 3.1 Migration - EZSwipeViewController beneath StatusBar -


i in process of migrating swift2.3 project swift3.1. part of it, facing trouble swipe controller used - 'ezswipeviewcontroller'.

i using xcode8.3, , testing on ios10.3.2 device/simulator.

before conversion, viewcontroller (with navigatiobar) displayed under status bar after conversion viewcontroller (with navigatiobar) goes beneath status bar.

i looked @ solutions , understood below work, did not work in case :-|

edgesforextendedlayout = []     extendedlayoutincludesopaquebars = false     automaticallyadjustsscrollviewinsets = false 

here below screenshots reference -

before conversion screenshot after conversion screenshot

give view layout top constraint superview (either in storyboard or code), let relative margins. start under status bar. might have add leading, trailing , bottom constraints too, avoid upsetting autolayout.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -