开发者

UINavigationController and adding a badge to rightBarButtonItem

How can I add a numeric badge to th开发者_如何学编程e rightBarButtonItem of a UINavigationController? I saw the same in some shopping cart applications.

thanks in advance,


You'll have to do this manually (ie, create a view that draws the badge and number in). There's no API to set a badge value on a UINavigationBar.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜