开发者

UIToolbar translucent style and certain UIBarButtonSystemItems

I wanted to post this "question", which I will answer, to help others who may experience this issue. When using a UIToolbar which is translucent, the UIBarButtonSystemItemPageCurl icon does not appear. Setting barStyle to UIBarStyleBlackTranslucent or se开发者_如何学编程tting translucent to TRUE causes this. Adding a UIBarButtonItem with a system item of UIBarButtonSystemItemPageCurl will not appear.


The solution as of 4.2 is to set the UIToolbar's style BEFORE setting its items. Failure to do so will result in a blank button appearing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜