05 2021 档案
【iOS知识汇】view 点击位置获取
摘要:- (CGPoint)locationInView:(UIView *)view: 点到了view 的哪个坐标。 不传view参数表示 相对全屏的坐标。 - (CGPoint)previousLocationInView:(UIView *)view: 记录前一次的坐标。 hitTest和point 阅读全文
posted @ 2021-05-15 12:36 wp7ers 阅读(534) 评论(0) 推荐(0)
【iOS知识汇】个别圆角
摘要:利用UIBezierPath: CAShapeLayer *shapeLayer = [CAShapeLayer layer]; shapeLayer.path = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, 100, 100) 阅读全文
posted @ 2021-05-10 17:18 wp7ers 阅读(64) 评论(0) 推荐(0)
【iOS 知识汇】cell 初始化过程
摘要:UITableView自定义cell时 若使用nib,使用 registerNib: 注册,dequeue时会调用 cell 的 -(void)awakeFromNib 不使用nib,使用 registerClass: 注册, dequeue时会调用 cell 的 - (id)initWithSty 阅读全文
posted @ 2021-05-08 11:03 wp7ers 阅读(168) 评论(0) 推荐(0)