zoukankan      html  css  js  c++  java
  • 统一修改 UINavigationBar backItem

    {

        UINavigationBar * navigationBar = [UINavigationBar appearance];

        //返回按钮的箭头颜色

        [navigationBar setTintColor:[UIColor whiteColor]];

        //设置返回样式图片

        UIImage *image = [UIImage imageNamed:@"backArrow"];

        image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

        navigationBar.backIndicatorImage = image;

        navigationBar.backIndicatorTransitionMaskImage = image;

        

        

        UIBarButtonItem *buttonItem = [UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil];

        UIOffset offset;

        offset.horizontal = -500;

        [buttonItem setBackButtonTitlePositionAdjustment:offset forBarMetrics:UIBarMetricsDefault];

    }

     

     

    还有这里的方法

    http://blog.csdn.net/zhangao0086/article/details/22432387

     

    两个方法都不是特别的完美

    后续补充

  • 相关阅读:
    [矩阵快速幂专题]
    [hdoj6415 Rikka with Nash Equilibrium][dp]
    [codeforces][dp]
    [2019年湘潭大学程序设计竞赛(重现赛)H chat][背包dp]
    [一道区间dp][String painter]
    [hdoj4578][多延迟标记的线段树]
    [cf1138BCircus][枚举,列等式]
    [Assign the task][dfs序+线段树]
    Codeforces round 419 div2 补题 CF 816 A-E
    Educational Codeforces Round 23 A-F 补题
  • 原文地址:https://www.cnblogs.com/rollrock/p/5988137.html
Copyright © 2011-2022 走看看