随笔分类 -  iOS

摘要:// // ViewController.m // ladder // // Created by xxx on 2022/3/9. // #import "ViewController.h" @interface ViewController() @property(nonatomic, stro 阅读全文
posted @ 2022-03-15 16:53 观海云不远 阅读(73) 评论(0) 推荐(0) 编辑
摘要:通过URL Scheme调起APP 在 Info.plist 中添加url scheme白名单 <key>LSApplicationQueriesSchemes</key> <array> <!-- 微信 URL Scheme 白名单--> <string>wechat</string> <stri 阅读全文
posted @ 2022-03-01 09:09 观海云不远 阅读(471) 评论(0) 推荐(0) 编辑
摘要:文件基本操作 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *cachePath = [paths firstObject]; NSFi 阅读全文
posted @ 2022-02-25 08:58 观海云不远 阅读(70) 评论(0) 推荐(0) 编辑
摘要:系统提供的方式 NSString *urlString = @"https://xxx.xxx.xxx/xxx"; NSURLSession *sharedSession = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = 阅读全文
posted @ 2022-02-23 09:51 观海云不远 阅读(281) 评论(0) 推荐(0) 编辑
摘要:SceneDelegate.m - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { 阅读全文
posted @ 2022-02-14 15:36 观海云不远 阅读(251) 评论(0) 推荐(0) 编辑
摘要:SingleClass.h // // SingleClass.h // First // // Created by xxx on 2022/2/9. // #import <Foundation/Foundation.h> @interface SingleClass : NSObject +( 阅读全文
posted @ 2022-02-14 13:49 观海云不远 阅读(164) 评论(0) 推荐(0) 编辑
摘要:UIView 生命周期 #import "ViewController.h" @interface TestView: UIView @end @implementation TestView - (instancetype)init{ self = [super init]; if (self) 阅读全文
posted @ 2022-01-28 09:53 观海云不远 阅读(259) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示