我用 < a href=\\ http:// developer. apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html" rel=“不随从无损" >UIApperance 。我设法将我所有 < a href=> 中的所有条形按钮都装上< a href=> http:// developer. apple.com/library/ios/#documentation/uikit/ referation/UinavigationBar_Class/Reference/Unistavigation/UnivigationBar.html" rel=“nofolfoln nore norereferreferr commissional does a ress remagiage_ recommagiage_ a recoalstal still.
""https://i.sstatic.net/NHvnu.png" alt="此处的内置图像描述"/"
NSDictionary* normalStyle = [NSDictionary
dictionaryWithObjects:[NSArray
arrayWithObjects:
[UIColor navigationTextNormalColor],
[UIColor whiteColor],
[NSValue
valueWithUIOffset:UIOffsetMake(
0,
1
)
]
, nil
]
forKeys:[NSArray
arrayWithObjects:
UITextAttributeTextColor,
UITextAttributeTextShadowColor,
UITextAttributeTextShadowOffset,
nil
]
];
[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationController class], nil]
setTitleTextAttributes:normalStyle
forState:UIControlStateNormal
];
[[UINavigationBar appearanceWhenContainedIn:[UINavigationController class], nil]
setTintColor:[UIColor navigationBarTintColor]
];