在 YYTableView.m中?
iOS 系統(tǒng)默認(rèn)?
在tableView 中添加 UIbutton ?手指放在 button 上進(jìn)行滑動 ,系統(tǒng)只會 響應(yīng) 對應(yīng)的點(diǎn)擊事件,而不會進(jìn)行滑動。
所以在
touchesShouldCancelInContentView方法 中進(jìn)行重寫
-YYTableView.m
在YYFPSLabel.m中?
sizeThatFits 可以看到官方文檔 中是這樣解釋
return 'best' size to fit given size. does not actually resize view. Default is return existing view size
也就是說返回一個適合的size?