1

How can I add a numeric badge to the rightBarButtonItem of a UINavigationController? I saw the same in some shopping cart applications.

thanks in advance,

4

1 回答 1

1

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.

于 2010-01-25T13:11:50.743 回答