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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -