摘要: SwiftUI 开发抖音Logo // // ContentView.swift // DouYinLogo // // Created by lujun on 2022/4/12. // import SwiftUI struct ContentView: View { let blue = Co 阅读全文
posted @ 2022-04-15 15:49 johnson--save 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ios15 屏幕适配 一般我都是写一个类管理 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LJUIManager : NSObject @property(nonatomic,assign,readonly) UIEdgeIn 阅读全文
posted @ 2022-02-01 09:23 johnson--save 阅读(199) 评论(0) 推荐(0) 编辑
摘要: SwiftUI中的快捷键积累 command简称 CMD键 , cmd + Shift + O,查看 VStack 源码的定义。非常重要,学会看源码,看看苹果官方怎么写的。 cmd + option + P。实时刷新画布预览。加上图钉功能。非常重要。 阅读全文
posted @ 2022-02-01 09:14 johnson--save 阅读(111) 评论(0) 推荐(0) 编辑
摘要: SwiftUI3.0将UIKit ViewController转化成 swiftUI的view 这也是SwiftUI中的重点之重。因为swiftUI里面的功能不够完善,需要借助UIKit里面的东西,就像swift 刚刚发布的时候,有时候还要借助oc的第三方类库一样。swift导入oc框架,只要搞个桥 阅读全文
posted @ 2022-02-01 09:09 johnson--save 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 主要源码 // // ViewController.m // UIPageViewControllerDemo // // Created by SHB on 16/4/12. // Copyright © 2016年 Herb. All rights reserved. // #import "V 阅读全文
posted @ 2022-02-01 09:00 johnson--save 阅读(72) 评论(0) 推荐(0) 编辑
摘要: ios15 pop框架的使用 主要源码 // // TestPopVC.m // podDemos // // Created by lujun on 2022/1/31. // #import "TestPopVC.h" #import "BSVerticalButton.h" #define B 阅读全文
posted @ 2022-01-31 17:29 johnson--save 阅读(136) 评论(0) 推荐(0) 编辑
摘要: SwiftUI3.0页面反向传值 SwiftUI反向传值是SwiftUI的重点之重,跟OC里面的代理,block,通知, swift里面的闭包,代理,通知 的方法类似,后者大家很熟,前者不怎么属性,必须遵守Combine 处理数据流的框架, 前者资料很少,后者资料很多 import SwiftUI 阅读全文
posted @ 2022-01-30 22:09 johnson--save 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 使用OC FMDB,然后桥接 创建一个桥接文件, #ifndef Bridge_Header_h #define Bridge_Header_h #import "FMDB.h" #endif /* Bridge_Header_h */ 不能使用 cocoapods管理,只能把框架源码导入swift 阅读全文
posted @ 2022-01-30 17:44 johnson--save 阅读(252) 评论(0) 推荐(0) 编辑
摘要: import UIKit import AVKit class AVPlayerViewVC: UIViewController ,AVPlayerViewControllerDelegate{ lazy var playerVc: AVPlayerViewController = { let pl 阅读全文
posted @ 2022-01-30 15:52 johnson--save 阅读(903) 评论(0) 推荐(1) 编辑
摘要: // // LottieView.swift // testLottieDemo1 // // Created by lujun on 2022/1/29. // import SwiftUI import Lottie //SwiftUI 不能直接 使用 Lottie ,需要 桥接 struct 阅读全文
posted @ 2022-01-30 14:30 johnson--save 阅读(562) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示