开发者

How many BarButtonItems can be added to UInavigationController [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

Improve this question

How can i add 4 barbuttoni开发者_如何学编程tems to uinavigation controller? If i can add then how?


Finally i find the answer... First of all i created the toolbar, numbers of buttons that i need programmatically. and added those buttons in NSMutableArray. Finally i add this array to my my toolbar item and add it to my view.

That worked perfectly for me. Actually number of button that we add on toolbar depends on the width of UIToolbar. We can add either two, three or four buttons to it if it's within the given width of toolbar. But according to apple reference we should add max two button on it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜