iOS cel事件l
-此夜微凉
...
展开
-
刷新单个section 和 单个cell
//一个section刷新NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:_indexpath.section];[_tableLegalView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];//一个cell刷新//N...原创 2018-12-04 10:51:06 · 289 阅读 · 0 评论 -
iOS 重新设置系统tableViewCell中imgView的大小
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ [.......]; CGSize itemSize = CGSizeMake(40, 40); UIGraphicsBeginImageContextWit...原创 2018-11-20 11:55:51 · 473 阅读 · 0 评论 -
iOS 设置指定的视图圆角
UIBezierPath*maskPath = [UIBezierPath bezierPathWithRoundedRect:cell.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)]; CAShapeLayer *m...原创 2018-08-17 10:59:50 · 685 阅读 · 0 评论 -
点击tableview后要获取当前点击的cell
1.点击cell获取当前的cellNSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; cell.textLabel.text= @"abc";2。 NSIn...原创 2018-04-24 09:05:37 · 4539 阅读 · 0 评论