我已經與部署目標和IOS SDK爲6.0一個應用程序。後來我的客戶所要求的應用程序應該在iOS上運行5.0+ devices.So我已經改變了部署目標5.0和IB的禁用自動佈局財產提到堆棧here,但現在IAM越來越錯誤,如下圖所示:- [的UIBarButtonItem了setBackgroundImage:forState:風格:barMetrics:]:無法識別的選擇發送到實例
> - [的UIBarButtonItem了setBackgroundImage:forState:風格:barMetrics:]:無法識別的選擇發送到實例0x2971f0
,我沒有發現什麼毛病我的UIBarButtonItem,
addButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
target:self
action:@selector(addProject)];
現在iam奮力尋找解決方案,等待您的寶貴幫助.. 在此先感謝。
可用 – 2013-03-16 09:29:09
我沒有使用過類似的任何方法這個方法只適用於iOS 6.0以上版本可用.. 這就是我在我的代碼中: - addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addProject)]; – 2013-03-16 09:31:05
它在iOS 5.0及更高版本中可用。 – 2013-03-16 09:32:14