摘要:
SwiftUI3.0页面反向传值 SwiftUI反向传值是SwiftUI的重点之重,跟OC里面的代理,block,通知, swift里面的闭包,代理,通知 的方法类似,后者大家很熟,前者不怎么属性,必须遵守Combine 处理数据流的框架, 前者资料很少,后者资料很多 import SwiftUI 阅读全文
posted @ 2022-01-30 22:09
johnson--save
阅读(433)
评论(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
阅读(262)
评论(0)
推荐(0)
摘要:
import UIKit import AVKit class AVPlayerViewVC: UIViewController ,AVPlayerViewControllerDelegate{ lazy var playerVc: AVPlayerViewController = { let pl 阅读全文
posted @ 2022-01-30 15:52
johnson--save
阅读(920)
评论(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
阅读(602)
评论(0)
推荐(0)
摘要:
// // ViewController.swift // AVPlayer播放远程视频 // // Created by lujun on 2022/1/30. // import UIKit import AVKit class ViewController: UIViewController 阅读全文
posted @ 2022-01-30 11:44
johnson--save
阅读(628)
评论(0)
推荐(0)
摘要:
// // ViewController.swift // 播放远程音乐 // // Created by lujun on 2022/1/29. // import UIKit import AVFoundation class ViewController: UIViewController { 阅读全文
posted @ 2022-01-30 08:57
johnson--save
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号