会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wkdwangjun
博客园
首页
新随笔
联系
订阅
管理
2024年8月12日
SwiftUI含有VideoPlayer预览时崩溃
摘要: 使用SwiftUI构建用户界面时,如果添加了VideoPlayer,预览可能会崩溃,解决方案是将AVKit.framework加入linked binaries
阅读全文
posted @ 2024-08-12 09:52 wkdwangjun
阅读(17)
评论(0)
推荐(0)
2023年8月31日
安装numpy
摘要: 学习机器学习需要用到numpy,而我的机器上没有numpy,于是我试着安装一下numpy,这里我用到的是pip的安装方式 `pip3 install numpy` 可是老是超时,于是我设置了超时时间为1000秒 `pip3 install numpy --timeout 1000` 下载了一会就卡住
阅读全文
posted @ 2023-08-31 15:49 wkdwangjun
阅读(39)
评论(0)
推荐(0)
2023年8月29日
objc懒加载的坑
摘要: 我们定义一个objc的属性时,有时候会用懒加载,比如 ```objc - (UITableView *)tableView { if (!_tableView) { _tableView = [UITableView new]; _tableView.delegate = self; } retur
阅读全文
posted @ 2023-08-29 15:37 wkdwangjun
阅读(73)
评论(0)
推荐(0)
2020年1月18日
Cocoapods遇到CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs...
摘要: 最近自己做了一个cocoapod库,代码改好了,先本地验证一下podspec pod lib lint MWPhotoBrowser.podspec --use-libraries --allow-warnings 报错了 e failed - 10 error(s): CDN: trunk URL
阅读全文
posted @ 2020-01-18 14:24 wkdwangjun
阅读(6559)
评论(0)
推荐(0)
2017年6月2日
避免uicollection view被错误的移动
摘要: 有一个collection view,layout是没有问题的。当我切换页面时,cell会被自动的往下移。控制台报错: The behavior of the UICollectionViewFlowLayout is not defined because: the item height mus
阅读全文
posted @ 2017-06-02 13:24 wkdwangjun
阅读(594)
评论(0)
推荐(0)
2016年8月19日
修改UITabBar的高度
摘要: 新建一个UITabBar的子类,重载以下的方法 - (CGSize)sizeThatFits:(CGSize)size { CGSize tabBarSize = [super sizeThatFits:size]; tabBarSize.height = 37; return tabBarSize
阅读全文
posted @ 2016-08-19 15:23 wkdwangjun
阅读(228)
评论(0)
推荐(0)
2016年8月18日
Presenting view controllers on detached view controllers is discouraged
摘要: 出现这个警告的原因是presentViewController的receiver是一个detached view controller。比方说:window有一个root view controller,然后我们把某个view controller(VC1)的view添加到了root view co
阅读全文
posted @ 2016-08-18 15:47 wkdwangjun
阅读(223)
评论(0)
推荐(0)
公告