随笔分类 -  ios

ios知识汇总
摘要: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) 编辑
摘要:主要源码 // // 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) 编辑
摘要:核心源码 #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) 编辑
摘要:#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) 编辑
摘要:`UILabel *lbl = [[UILabel alloc]init]; NSString *text =@"你好\n哈哈哈"; NSMutableAttributedString *attributeText = [[NSMutableAttributedString alloc]initWi 阅读全文
posted @ 2022-01-06 11:21 johnson--save 阅读(102) 评论(0) 推荐(0) 编辑

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