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

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift