随笔分类 - ios
ios知识汇总
摘要:ios15 屏幕适配 一般我都是写一个类管理 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface LJUIManager : NSObject @property(nonatomic,assign,readonly) UIEdgeIn
阅读全文
摘要:主要源码 // // ViewController.m // UIPageViewControllerDemo // // Created by SHB on 16/4/12. // Copyright © 2016年 Herb. All rights reserved. // #import "V
阅读全文
摘要:ios15 pop框架的使用 主要源码 // // TestPopVC.m // podDemos // // Created by lujun on 2022/1/31. // #import "TestPopVC.h" #import "BSVerticalButton.h" #define B
阅读全文
摘要:核心源码 #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
阅读全文
摘要:#import "ViewController.h" #import <AVFoundation/AVFoundation.h> #import "LJPreView.h" //遵守代理 @interface ViewController ()<AVCaptureMetadataOutputObje
阅读全文
摘要:#import "DetailViewController.h" #import "UIView+Frame.h" #define kScreenW [UIScreen mainScreen].bounds.size.width #define KScreenH [UIScreen mainScre
阅读全文
摘要:ios15音频工具类封装 #import <Foundation/Foundation.h> @interface HMAudioTool : NSObject /** * 播放音乐 * * @param filename 音乐的文件名 */ + (BOOL)playMusic:(NSString
阅读全文
摘要:// // ViewController.m // 05-录音 // // Created by lujun on 2022/1/21. // #import "ViewController.h" #import <AVKit/AVKit.h> @interface ViewController (
阅读全文
摘要:`UILabel *lbl = [[UILabel alloc]init]; NSString *text =@"你好\n哈哈哈"; NSMutableAttributedString *attributeText = [[NSMutableAttributedString alloc]initWi
阅读全文