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

store cgpoint in userdefaults iOS swift