会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
johnson--save
博客园
首页
新随笔
联系
订阅
管理
2022年4月15日
SwiftUI 开发抖音Logo
摘要: 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
阅读(141)
评论(0)
推荐(0)
2022年2月1日
iOS15屏幕适配
摘要: 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
阅读(209)
评论(0)
推荐(0)
SwiftUI中的快捷键积累
摘要: SwiftUI中的快捷键积累 command简称 CMD键 , cmd + Shift + O,查看 VStack 源码的定义。非常重要,学会看源码,看看苹果官方怎么写的。 cmd + option + P。实时刷新画布预览。加上图钉功能。非常重要。
阅读全文
posted @ 2022-02-01 09:14 johnson--save
阅读(126)
评论(0)
推荐(0)
SwiftUI3.0将UIKit ViewController转化成 swiftUI的view
摘要: SwiftUI3.0将UIKit ViewController转化成 swiftUI的view 这也是SwiftUI中的重点之重。因为swiftUI里面的功能不够完善,需要借助UIKit里面的东西,就像swift 刚刚发布的时候,有时候还要借助oc的第三方类库一样。swift导入oc框架,只要搞个桥
阅读全文
posted @ 2022-02-01 09:09 johnson--save
阅读(318)
评论(0)
推荐(0)
iOS15 UIPageViewController的使用
摘要: 主要源码 // // 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
阅读(77)
评论(0)
推荐(0)
2022年1月31日
ios15 pop框架的使用
摘要: 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
阅读(142)
评论(0)
推荐(0)
2022年1月30日
SwiftUI3.0页面反向传值
摘要: SwiftUI3.0页面反向传值 SwiftUI反向传值是SwiftUI的重点之重,跟OC里面的代理,block,通知, swift里面的闭包,代理,通知 的方法类似,后者大家很熟,前者不怎么属性,必须遵守Combine 处理数据流的框架, 前者资料很少,后者资料很多 import SwiftUI
阅读全文
posted @ 2022-01-30 22:09 johnson--save
阅读(432)
评论(0)
推荐(0)
swift5 FMDB的基本使用
摘要: 使用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)
Swift5 AVPlayerViewController的基本使用
摘要: import UIKit import AVKit class AVPlayerViewVC: UIViewController ,AVPlayerViewControllerDelegate{ lazy var playerVc: AVPlayerViewController = { let pl
阅读全文
posted @ 2022-01-30 15:52 johnson--save
阅读(919)
评论(0)
推荐(1)
swiftUI3.0 使用Lottie动画
摘要: // // 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)
下一页
公告