设置导航栏的标题文字笔触颜色是否有问题?如果有以下代码
[[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"Copperplate" size:19],
NSForegroundColorAttributeName:[UIColor whiteColor],
NSStrokeColorAttributeName:[UIColor colorWithRed:215/255.0f green:75/255.0f blue:40/255.0f alpha:1],
NSStrokeWidthAttributeName:@-3.0
}]; UI_APPEARANCE_SELECTOR;
字体名称和颜色看起来很好,但笔触颜色和宽度不会反映在UI中。有人想出来了吗?