01 2022 档案

摘要: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) 编辑
摘要:// // 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 阅读(561) 评论(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 阅读(113) 评论(0) 推荐(0) 编辑
摘要:// // AudioTool.swift // ReconderSuccess1 // // Created by lujun on 2022/1/27. // import UIKit import AVFoundation class AudioTool: NSObject { class f 阅读全文
posted @ 2022-01-27 17:33 johnson--save 阅读(183) 评论(0) 推荐(0) 编辑
摘要:// // ViewController.swift // ReconderSuccess1 // // Created by lujun on 2022/1/27. // import UIKit import AVFoundation class ViewController: UIViewCo 阅读全文
posted @ 2022-01-27 17:05 johnson--save 阅读(326) 评论(0) 推荐(0) 编辑
摘要:核心源码 #import "LJPhoneTextField.h" // 设置RGB颜色 #define RGB(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] @implementa 阅读全文
posted @ 2022-01-25 13:26 johnson--save 阅读(94) 评论(0) 推荐(0) 编辑
摘要:// // ViewController.swift // AudioRecoardDemo // // Created by lujun on 2022/1/25. // import UIKit import AudioToolbox import AVFoundation class View 阅读全文
posted @ 2022-01-25 12:44 johnson--save 阅读(309) 评论(0) 推荐(0) 编辑
摘要:#import "ViewController.h" #import <AVFoundation/AVFoundation.h> #import "LJPreView.h" //遵守代理 @interface ViewController ()<AVCaptureMetadataOutputObje 阅读全文
posted @ 2022-01-25 11:04 johnson--save 阅读(331) 评论(0) 推荐(1) 编辑
摘要:#import "DetailViewController.h" #import "UIView+Frame.h" #define kScreenW [UIScreen mainScreen].bounds.size.width #define KScreenH [UIScreen mainScre 阅读全文
posted @ 2022-01-25 10:57 johnson--save 阅读(174) 评论(0) 推荐(0) 编辑
摘要:ios15音频工具类封装 #import <Foundation/Foundation.h> @interface HMAudioTool : NSObject /** * 播放音乐 * * @param filename 音乐的文件名 */ + (BOOL)playMusic:(NSString 阅读全文
posted @ 2022-01-25 10:25 johnson--save 阅读(79) 评论(0) 推荐(0) 编辑
摘要:// // ViewController.m // 05-录音 // // Created by lujun on 2022/1/21. // #import "ViewController.h" #import <AVKit/AVKit.h> @interface ViewController ( 阅读全文
posted @ 2022-01-25 10:22 johnson--save 阅读(264) 评论(0) 推荐(0) 编辑
摘要:核心源码 // // ContentView.swift // LJPlanets // // Created by lujun on 2022/1/24. // import SwiftUI //导入场景Kit 导入场景框架 import SceneKit struct ContentView: 阅读全文
posted @ 2022-01-25 09:02 johnson--save 阅读(55) 评论(0) 推荐(0) 编辑
摘要:- (void)fingerVerification { if ([UIDevice currentDevice].systemVersion.floatValue<8.0) { NSLog(@"ios8.0以后才支持指纹识别"); return; } //IOS11之后如果支持faceId也是走同 阅读全文
posted @ 2022-01-17 12:33 johnson--save 阅读(311) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ButtonControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // b 阅读全文
posted @ 2022-01-06 13:24 johnson--save 阅读(94) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ImageControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // si 阅读全文
posted @ 2022-01-06 13:20 johnson--save 阅读(162) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // SwiftUIAnimationHeight // // Created by lujun on 2021/12/20. // import SwiftUI struct ContentView: View { @State var enale: 阅读全文
posted @ 2022-01-06 13:17 johnson--save 阅读(148) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // TextControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { // bas 阅读全文
posted @ 2022-01-06 13:15 johnson--save 阅读(99) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // TextFieldControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { / 阅读全文
posted @ 2022-01-06 13:02 johnson--save 阅读(120) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // TextFieldSupplement // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View 阅读全文
posted @ 2022-01-06 13:00 johnson--save 阅读(70) 评论(0) 推荐(0) 编辑
摘要:// // ContentView.swift // ToggleControl // // Created by lujun on 2021/12/19. // import SwiftUI struct ContentView: View { var body: some View { togg 阅读全文
posted @ 2022-01-06 12:55 johnson--save 阅读(286) 评论(0) 推荐(0) 编辑
摘要:`UILabel *lbl = [[UILabel alloc]init]; NSString *text =@"你好\n哈哈哈"; NSMutableAttributedString *attributeText = [[NSMutableAttributedString alloc]initWi 阅读全文
posted @ 2022-01-06 11:21 johnson--save 阅读(102) 评论(0) 推荐(0) 编辑

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