随笔分类 - iOS
摘要:// // ViewController.m // ladder // // Created by xxx on 2022/3/9. // #import "ViewController.h" @interface ViewController() @property(nonatomic, stro
阅读全文
摘要:通过URL Scheme调起APP 在 Info.plist 中添加url scheme白名单 <key>LSApplicationQueriesSchemes</key> <array> <!-- 微信 URL Scheme 白名单--> <string>wechat</string> <stri
阅读全文
摘要:文件基本操作 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *cachePath = [paths firstObject]; NSFi
阅读全文
摘要:系统提供的方式 NSString *urlString = @"https://xxx.xxx.xxx/xxx"; NSURLSession *sharedSession = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask =
阅读全文
摘要:SceneDelegate.m - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
阅读全文
摘要:SingleClass.h // // SingleClass.h // First // // Created by xxx on 2022/2/9. // #import <Foundation/Foundation.h> @interface SingleClass : NSObject +(
阅读全文
摘要:UIView 生命周期 #import "ViewController.h" @interface TestView: UIView @end @implementation TestView - (instancetype)init{ self = [super init]; if (self)
阅读全文