2011-11-28 65 views

回答

7

您可以創建一個UIButton與類型UIButtonTypeContactAdd並將其添加爲附件視圖:

UIButton *accessory = [UIButton buttonWithType:UIButtonTypeContactAdd]; 
[cell setAccessoryView:accessory]; 

雖然圖標是藍色的,如果你想讓它像綠色UITableViewCellEditingStyleInsert一樣,你必須製作一個帶有自定義圖片的按鈕,而不是使用UIButtonTypeContactAdd

相關問題