我已经使用InterfaceBuilder添加了工具栏,但我需要在运行时/有条件地添加按钮。我没有收到任何错误,但我的动态按钮没有出现在工具栏上。我已经验证arrayOfModulesScreens加载了我需要的数据。至少那是有效的(:))。我是否需要将按钮添加到UIView,然后将该View添加到工具栏?只是大声思考。也许有更好的方法开始?预先感谢导致解决的任何线索。CustomFormController.h@interfaceCustomFormController:UIViewController{UIToolbar*screensBar;}CustomFormControll