摘要: 学习机器学习需要用到numpy,而我的机器上没有numpy,于是我试着安装一下numpy,这里我用到的是pip的安装方式 `pip3 install numpy` 可是老是超时,于是我设置了超时时间为1000秒 `pip3 install numpy --timeout 1000` 下载了一会就卡住 阅读全文
posted @ 2023-08-31 15:49 wkdwangjun 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 我们定义一个objc的属性时,有时候会用懒加载,比如 ```objc - (UITableView *)tableView { if (!_tableView) { _tableView = [UITableView new]; _tableView.delegate = self; } retur 阅读全文
posted @ 2023-08-29 15:37 wkdwangjun 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 最近自己做了一个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 阅读(6458) 评论(0) 推荐(0) 编辑
摘要: 有一个collection view,layout是没有问题的。当我切换页面时,cell会被自动的往下移。控制台报错: The behavior of the UICollectionViewFlowLayout is not defined because: the item height mus 阅读全文
posted @ 2017-06-02 13:24 wkdwangjun 阅读(553) 评论(0) 推荐(0) 编辑
摘要: 新建一个UITabBar的子类,重载以下的方法 - (CGSize)sizeThatFits:(CGSize)size { CGSize tabBarSize = [super sizeThatFits:size]; tabBarSize.height = 37; return tabBarSize 阅读全文
posted @ 2016-08-19 15:23 wkdwangjun 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 出现这个警告的原因是presentViewController的receiver是一个detached view controller。比方说:window有一个root view controller,然后我们把某个view controller(VC1)的view添加到了root view co 阅读全文
posted @ 2016-08-18 15:47 wkdwangjun 阅读(212) 评论(0) 推荐(0) 编辑