kok*_*oko 5 xcode uibarbuttonitem ios ios7
我在AppDelegate中UIBarButtonItem通过appearance代理设置标题字体:
[[UIBarButtonItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIFont fontWithName:@"Segoe Print" size: 14.0], UITextAttributeFont,
DEF_TITLE_COLOR,UITextAttributeTextColor,
[UIColor colorWithRed:100/255 green:128/255 blue:43/255 alpha:0.4], UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(0, 1)], UITextAttributeTextShadowOffset, nil]
forState:UIControlStateNormal&UIControlStateHighlighted&UIControlStateDisabled];
Run Code Online (Sandbox Code Playgroud)
之后我presentViewController::在我的应用程序的某个地方打电话.条形按钮显示正确的字体和背景图像,我在此ViewController中设置(不通过外观):

但是当我按下"加入"按钮时,会显示标准的非自定义UIAlertView,并且在它出现在屏幕上之后我的barButton字体变为...标准?颜色也看起来像色彩.我不知道我做错了什么,尝试了很多东西来解决它:

此错误仅出现在iOS7上.
| 归档时间: |
|
| 查看次数: |
1166 次 |
| 最近记录: |