作者lolicontrol (self)
看板MacDev
標題Re: [問題] 請教關於CollectionView上面的Button。
時間Thu Aug 7 23:58:09 2014
我做法跟你類似
UICollectionView *collection = (UICollectionView*) self.superview;
[collection indexPathForCell:self].row
最後用 delegate 回傳值
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.154.68
※ 文章網址: http://webptt.com/m.aspx?n=bbs/MacDev/M.1407427092.A.09D.html
1F:→ mraaa:是因為Cell還有其他元件所以不用didSelect嗎? 08/08 02:46
※ 編輯: lolicontrol (36.226.159.233), 08/08/2014 05:08:32
原po好像是要點 Cell 裡的 Button
※ 編輯: lolicontrol (36.226.159.233), 08/08/2014 05:10:46