IOS
todos-hah
这个作者很懒,什么都没留下…
展开
-
xcode12 老项目 UITableView 点击事件无效
通过查看Cell元素、层级元素 发现 UITableCellContent 遮挡导致的,为什么会发生这个耶?在老项目中 cell代码创建时,使用了self addSubView 导致的, xcode 12 中应该使用 self.contentView addSubView 可以避免 此类似事件发生 UIView *content = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTH - 30, 55)]; //[self.co原创 2020-11-04 16:27:02 · 472 阅读 · 0 评论 -
iOS返回的几种方式
监听返回重写handleNavigationTransition方法- (void)handleNavigationTransition { [self backBeforePage];}popViewController回调用dealloc- (void)dealloc { NSLog(@"123");}viewWillDisappear将要消失- (void)viewWillDisappear:(BOOL)animated{ if ([self.n原创 2020-10-20 16:45:13 · 683 阅读 · 0 评论 -
IOS HEIC HEIF 转 JPEG
核心代码:UIImageJPEGRepresentation(resultImage, 0.7)在PHImageManager中resultHandler中处理即可[[PHImageManager defaultManager] requestImageForAsset:asset targetSize:PHImageManagerMaximumSize contentMode:PHI...原创 2020-01-15 16:05:44 · 850 阅读 · 0 评论