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

python - What's the Pythonic way to report nonfatal errors in a parser? -

angular - Converting AngularJS deffered promise to AngularX observable for JSOM -

php - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to domain.com:443 -