0
嘿傢伙我可以添加和刪除單元格到我的表格視圖。我想要添加每個單元格的兩個按鈕。請有人幫助我嗎?我找到了這個,我找不到它!我會喜歡一些幫助!非常感謝! :d以編程方式向表格視圖單元添加按鈕。
嘿傢伙我可以添加和刪除單元格到我的表格視圖。我想要添加每個單元格的兩個按鈕。請有人幫助我嗎?我找到了這個,我找不到它!我會喜歡一些幫助!非常感謝! :d以編程方式向表格視圖單元添加按鈕。
添加按鈕子視圖爲您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];
完美!!!! :D非常感謝! :d – iProRage