在我的项目中将 Xcode 4.2 更新到 4.3 版本后,所有导航按钮都消失了。源代码没有改变。
代码:
UIBarButtonItem * button = [[UIBarButtonItem alloc] initWithTitle:title
style:UIBarButtonItemStyleBordered
target:target
action:action];
title = null它使用, but button != niland targetand actiontoo创建了按钮。
button.title = @"ololo";
这也不起作用。