阅读背景:

如何以编程方式将UIButton添加到UIToolBar ?

来源:互联网 

I have added the toolbar using Interface Builder, but I need to add the buttons at runtime / conditionally. I'm not getting any errors, but my dynamic buttons are not appearing on the toolbar. I have verified that arrayOfModulesScreens is loaded with the data I need. At least that works (:)). Do I need to add the buttons into a UIView, then add that view to the toolbar? Just thinking outloud. Perhaps there is a better approach to begin with? Thanks in advance for any clues leading to the resolve.I have added the toolbar using Interface Builde




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: