UITableView
风雪萧萧秋雨落
这个作者很懒,什么都没留下…
展开
-
UITableView section headerview 不悬停
今天2019年09月20日把UITableView的Style 改为 Group.footer view 系统会自己加上. 所以要改一下footerview相关的设置.看代码吧. swift写的.import UIKitclass ViewController: UIViewController,UITableViewDelegate,UITableViewDataSour...原创 2019-09-20 13:43:23 · 525 阅读 · 0 评论 -
UITableViewCell加UIButton/UISwitch 点击事件不管用
UITableViewCell加UIButton/UISwitch 点击事件不管用记录问题在别的手机没有问题 但是iphone11上 cell里加的btn 点击事件不响应.之前是[cell addSubView:btn];改为[cell.contentView addSubView:btn];就可以响应点击事件了....原创 2020-09-25 10:22:02 · 1039 阅读 · 0 评论 -
UITableView 默认选择一行.
大家都知道让UITableView选择一行.- (void)viewDidLoad { [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0] animated:YES scrollPosition:UITableViewScrollPositionNone];} 但是...原创 2019-02-02 09:34:25 · 280 阅读 · 0 评论