Navigation Bar set for all Devices

Solution:
 The below code is used for set the navigation bar title correctly for all devices.

        UIBarButtonItem.appearance().setBackButtonTitlePositionAdjustment(UIOffsetMake(0, -60), for:UIBarMetrics.default)

        UINavigationBar.appearance().tintColor = UIColor.white

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift