摘要:
问题版本:xcode12.2 , iOS14.2, iOS的定时器,RxSwift5.1.1 的定时器都有效 AppDelegate的applicationDidEnterBackground添加 swift func applicationDidEnterBackground(_ applicat
阅读全文
posted @ 2020-11-19 14:16
懂事长qingzZ
阅读(667)
推荐(0)
摘要:
添加手势 let disposeBag = DisposeBag() let label = UILabel() label.text = "Hello World!" let tapGesture = UITapGestureRecognizer() label.addGestureRecogni
阅读全文
posted @ 2020-11-17 10:59
懂事长qingzZ
阅读(263)
推荐(0)
摘要:
更新Xcode 12.2正式版之后,调试我们app的时候出错了,Log里提示:dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because image not found
阅读全文
posted @ 2020-11-16 14:23
懂事长qingzZ
阅读(788)
推荐(0)
摘要:
1. #import <PhotosUI/PhotosUI.h> Info.plist 中设置“PHPhotoLibraryPreventAutomaticLimitedAccessAlert”的值为 YES 来阻止该弹窗反复弹出 2.iOS14之后获取相册授权状态的方法 if (@availabl
阅读全文
posted @ 2020-11-12 17:27
懂事长qingzZ
阅读(3549)
推荐(0)
摘要:
iOS collectionView返回顶部 1. NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0]; [collectionView scrollToItemAtIndexPath:indexPath atSc
阅读全文
posted @ 2020-11-11 14:49
懂事长qingzZ
阅读(2072)
推荐(0)
摘要:
@property (nonatomic,strong) dispatch_source_t timer; ///不是在dealloc 修改为空 - (void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated];
阅读全文
posted @ 2020-11-02 14:39
懂事长qingzZ
阅读(192)
推荐(0)
摘要:
https://www.jianshu.com/p/c835185fb9c2
阅读全文
posted @ 2020-11-02 14:26
懂事长qingzZ
阅读(138)
推荐(0)
摘要:
使用OC加载图片的两种方式及其区别 https://blog.csdn.net/u013406800/article/details/72627879
阅读全文
posted @ 2020-10-20 14:53
懂事长qingzZ
阅读(266)
推荐(0)
摘要:
1.Swift自动布局SnapKit的详细使用介绍 https://www.jianshu.com/p/2bad53a2a180 2..安全区写法 swift 约束 - SnapKit 适配iPhoneX 安全区 和苹果自带的VFL ,auto layout 安全区适配 https://my.osc
阅读全文
posted @ 2020-10-19 14:59
懂事长qingzZ
阅读(566)
推荐(0)
摘要:
import CoreTelephonyimport Alamofire var currentNetStatus: NetworkReachabilityManager.NetworkReachabilityStatus? { get{ return self.netWorkReachabilit
阅读全文
posted @ 2020-10-19 14:37
懂事长qingzZ
阅读(314)
推荐(0)