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

     

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

    后续补充

  • 相关阅读:
    只要有梦想
    过去这一年
    Importing BizTalk Applications to Production Environment
    SQL Server 2005 – Database Master Key
    Check Page Rank of any web site pages instantly
    An Introduction to SQL Server Service Broker [WORD DOCUMENT]
    Svcutil.exe – Generate the proxy class for the WCF client application
    SQL Server 2005: how to add a linked server
    BizTalk Error: The published message could not be routed
    Enable routing for failed messages in BizTalk 2006
  • 原文地址:https://www.cnblogs.com/rollrock/p/5988137.html
Copyright © 2011-2022 走看看