iOS集成QQ(TencentOpenAPI),封装单例
摘要:1.下载sdk 1. iOS SDK 下载 2.按照文档拖到工程里面 3.info.list 添加LSApplicationQueriesSchemes ,右侧array <key>LSApplicationQueriesSchemes</key> <array> <string>tim</stri
阅读全文
posted @
2020-11-30 18:15
懂事长qingzZ
阅读(1508)
推荐(0) 编辑
swift 集成微信SDK,封装单例
摘要:官方链接 https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html 封装 /** * 微信操作 单例 */ func TGSLOG<Message>(message: Message, fileNa
阅读全文
posted @
2020-11-30 16:28
懂事长qingzZ
阅读(551)
推荐(0) 编辑
OC 添加导航栏item
摘要:/** * 设定右侧按钮方法 */ - (void)createMakeBtn{ UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 70, 40)]; button.backgroundColor = UIColo
阅读全文
posted @
2020-11-26 10:10
懂事长qingzZ
阅读(304)
推荐(0) 编辑
xcode 一些三方库版本警告 iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.2.99.
摘要:1. 三方库警告: Showing All Messages The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment t
阅读全文
posted @
2020-11-23 16:20
懂事长qingzZ
阅读(9263)
推荐(0) 编辑
Swift UITextView设置富文本点击, 取消一切点击事件(放大镜/复制粘贴/删除等等)
摘要:1. 设置富文本,超链接点击 2. 取消一切点击事件(放大镜/复制粘贴/删除等等) /// 同意协议view class TGSLoginAgreeView: UIView, UITextViewDelegate { ///点击类型 enum ClickLinkType { ///用户协议 case
阅读全文
posted @
2020-11-20 11:22
懂事长qingzZ
阅读(2663)
推荐(0) 编辑
SnapKit 动画
摘要:1. 控制器中viewDidLoad使用 要在主线程 ///更新动画 DispatchQueue.main.async { UIView.animate(withDuration: 0.5) {[weak self] in self?.centerIV.snp.updateConstraints {
阅读全文
posted @
2020-11-19 15:29
懂事长qingzZ
阅读(905)
推荐(0) 编辑
RxSwift倒计时
摘要:参考 RxSwift 中的倒计时 https://www.jianshu.com/p/85d749ce8c96 iOS 计时器在程序处于后台时依然执行(OC/swift / RxSwift ) https://www.cnblogs.com/qingzZ/p/14005323.html
阅读全文
posted @
2020-11-19 14:26
懂事长qingzZ
阅读(437)
推荐(0) 编辑
iOS 倒计时在程序处于后台时依然执行(OC/swift / RxSwift )
摘要:问题版本:xcode12.2 , iOS14.2, iOS的定时器,RxSwift5.1.1 的定时器都有效 AppDelegate的applicationDidEnterBackground添加 swift func applicationDidEnterBackground(_ applicat
阅读全文
posted @
2020-11-19 14:16
懂事长qingzZ
阅读(636)
推荐(0) 编辑
RxSwift 使用详解系列
摘要:添加手势 let disposeBag = DisposeBag() let label = UILabel() label.text = "Hello World!" let tapGesture = UITapGestureRecognizer() label.addGestureRecogni
阅读全文
posted @
2020-11-17 10:59
懂事长qingzZ
阅读(251)
推荐(0) 编辑
xcode dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because image
摘要:更新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
阅读(774)
推荐(0) 编辑
iOS 14 相册适配PHAuthorizationStatusNotDetermined
摘要:1. #import <PhotosUI/PhotosUI.h> Info.plist 中设置“PHPhotoLibraryPreventAutomaticLimitedAccessAlert”的值为 YES 来阻止该弹窗反复弹出 2.iOS14之后获取相册授权状态的方法 if (@availabl
阅读全文
posted @
2020-11-12 17:27
懂事长qingzZ
阅读(3417)
推荐(0) 编辑
iOS collectionView返回顶部 / 滚动到指定位置
摘要:iOS collectionView返回顶部 1. NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0]; [collectionView scrollToItemAtIndexPath:indexPath atSc
阅读全文
posted @
2020-11-11 14:49
懂事长qingzZ
阅读(2028)
推荐(0) 编辑
OC 添加GCD 定时器
摘要:@property (nonatomic,strong) dispatch_source_t timer; ///不是在dealloc 修改为空 - (void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated];
阅读全文
posted @
2020-11-02 14:39
懂事长qingzZ
阅读(172)
推荐(0) 编辑
Xcode设置启动页问题总结
摘要:https://www.jianshu.com/p/c835185fb9c2
阅读全文
posted @
2020-11-02 14:26
懂事长qingzZ
阅读(122)
推荐(0) 编辑