2011-10-11 158 views

回答

7

添加按鈕子視圖爲您cell.Tats它。我已經給出了樣本

//Create ur cell then do the following  
UIButton *newBtn=[UIButton buttonWithType:UIButtonTypeCustom]; 
     [newBtn setFrame:CGRectMake(10,5,55,55)]; 
     [newBtn addTarget:self action:@selector(urSelctor:) forControlEvents:UIControlEventTouchUpInside]; 

     [cell addSubview:newBtn]; 
+0

完美!!!! :D非常感謝! :d – iProRage

相關問題