NavigationBar 返回按鈕

//設置導航返回按鈕  不讓back 出現app

let image = UIImage(named: "nav_back")?.withRenderingMode(UIImageRenderingMode.alwaysOriginal)it

        (UINavigationBar.appearance()).backIndicatorImage = imageio

        (UINavigationBar.appearance()).backIndicatorTransitionMaskImage = imageim

        (UIBarButtonItem.appearance()).setBackButtonTitlePositionAdjustment(UIOffset.init(horizontal: 0, vertical: -60), for: .default)di

相關文章
相關標籤/搜索