在 YYTableView.m中
iOS 系统默认
在tableView 中添加 UIbutton 手指放在 button 上进行滑动 ,系统只会 响应 对应的点击事件,而不会进行滑动。
所以在
touchesShouldCancelInContentView方法 中进行重写
-YYTableView.m
在YYFPSLabel.m中
sizeThatFits 可以看到官方文档 中是这样解释
return 'best' size to fit given size. does not actually resize view. Default is return existing view size
也就是说返回一个适合的size
网友评论