将xcode 4.2更新为4.3版本

时间:2012-04-09 12:50:20

标签: objective-c xcode

在我的项目中将Xcode 4.2更新为4.3版后,所有导航按钮都消失了。源代码没有改变。

代码:

UIBarButtonItem * button = [[UIBarButtonItem alloc] initWithTitle:title
                                                   style:UIBarButtonItemStyleBordered
                                                  target:target
                                                  action:action];

它创建了一个带有title = null的按钮,但button != niltarget以及action也是如此。

button.title = @"ololo";

这也不起作用。

0 个答案:

没有答案