会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
willbin
博客园
首页
新随笔
联系
订阅
管理
[置顶]
Swift 编译时间优化
摘要: https://github.com/fastred/Optimizing-Swift-Build-Times 在Xcode中直接看到编译项目的时间 step1:关闭Xcode step2:打开终端执行 defaults write com.apple.dt.Xcode ShowBuildOpera
阅读全文
posted @ 2019-04-25 17:24 willbin
阅读(415)
评论(0)
推荐(0)
[置顶]
test chemes
摘要: rcmobile://messages rcmobile://badge rcmobile://dialer rcmobile://open rcmobile://sms?type=new rcmobile://call?number=5719
阅读全文
posted @ 2016-11-17 15:14 willbin
阅读(213)
评论(0)
推荐(0)
[置顶]
Mac下开发常用目录
摘要: 1:Snippets Xcode 代码段的文件表示 ~/Library/Developer/Xcode/UserData/CodeSnippets/ 2: Services 可以添加workflow到这里来方便工作 ~/Library/Services/
阅读全文
posted @ 2016-03-21 15:15 willbin
阅读(790)
评论(0)
推荐(0)
[置顶]
文字高度问题
摘要: 1:UILabel 加NSMutableAttributedString用下面的方法计算高度. contentSize = [dstAttrStr boundingRectWithSize:CGSizeMake(_contentLabel.frame.size.width, 100000) ...
阅读全文
posted @ 2015-12-15 10:47 willbin
阅读(314)
评论(0)
推荐(0)
[置顶]
Xcode磁盘空间清理
摘要: http://www.iwangke.me/2013/09/09/clean-xcode-to-free-up-disk-space/#jtss-tsina https://stackoverflow.com/questions/33419301/is-it-okay-to-delete-the-m
阅读全文
posted @ 2015-03-24 01:56 willbin
阅读(455)
评论(0)
推荐(0)
[置顶]
批量添加-fno-objc-arc
摘要: http://syxiaqj.github.io/2014/02/28/bee-learning-1/4、批量添加-fno-objc-arc因为BeeFramework是一个非RAC的框架,现在Xcode5.0以后新建的工程,都默认是ARC工程,所以需要对BeeFramework进行混编处理。fra...
阅读全文
posted @ 2015-01-27 22:58 willbin
阅读(662)
评论(0)
推荐(0)
[置顶]
.gitignore的使用:首次创建及事后添加无法生效.
摘要: 问题:使用sourceTree做版本管理后, Xcode工程每次打开, 都会有几个xcodeworkspace之类的文件提示改动了.如果想ignore掉, 有两种情况:1:整个工程没有纳入版本管理之前, 直接在工程的主文件夹添加 .gitignore 文件, 内容参考:https://github....
阅读全文
posted @ 2014-07-03 10:53 willbin
阅读(4338)
评论(0)
推荐(0)
[置顶]
UIView 设置alpha后, 子view也随着变化alpha, 解决方法
摘要: // _closeContainerBar.alpha = 0.7; _closeContainerBar.backgroundColor =[[UIColor blackColor] colorWithAlphaComponent:0.7];
阅读全文
posted @ 2014-06-30 21:57 willbin
阅读(326)
评论(0)
推荐(0)
[置顶]
Xcode中如何启用或禁用某些文件的ARC
摘要: 经常会有工程中涉及到第三方的代码, 但这些代码有的是ARC的, 有的不是.这样的话, 在与你的工程中集成的时候就会出现问题.如果你的工程是开启ARC的, 那就需要对某些文件禁用ARC, (-fno-objc-arc)如果你的工程是关闭ARC的, 那就需要对某些文件开启ARC.(-fobjc-arc)...
阅读全文
posted @ 2013-10-20 23:23 willbin
阅读(1863)
评论(0)
推荐(0)
2023年2月18日
Swift源码转PlantUML
摘要: brew install swiftplantuml https://github.com/MarcoEidinger/SwiftPlantUML 在文件目录下执行 swiftplantuml ./*.swift 然后就会打开 https://www.planttext.com/ 进行编辑展示.
阅读全文
posted @ 2023-02-18 21:31 willbin
阅读(79)
评论(0)
推荐(0)
2020年12月31日
ffmpeg 使用
摘要: //改变文件大小 ffmpeg -i big.mp4 -s 2000x1000 small.mp4 //改变文件类型 ffmpeg -i aaa.avi bbb.mp4
阅读全文
posted @ 2020-12-31 12:51 willbin
阅读(66)
评论(0)
推荐(0)
2020年2月25日
[转]标点符号的英语名称
摘要: http://www.ruanyifeng.com/blog/2007/07/english_punctuation.html 标点符号的英语名称 分享按钮 作者: 阮一峰 日期: 2007年7月31日 根据网上的资料,我整理了一份常见标点符号的英语名称。 . period or full stop
阅读全文
posted @ 2020-02-25 12:10 willbin
阅读(269)
评论(0)
推荐(0)
2020年2月16日
正则使用一例
摘要: 需要把数段文字中的第一个单词变大写. 1.打开Sublime Text Find -> Replace... 3. Replace all后替换一轮, 再有再替换. ps: 查找正则 (" = ".+ )([A-Z]) 替换正则 $1\L$2
阅读全文
posted @ 2020-02-16 21:23 willbin
阅读(134)
评论(0)
推荐(0)
2019年9月26日
QRCode 二维码
摘要: https://www.qrcode.com/zh/faq.html https://zhuanlan.zhihu.com/p/25423714 https://www.qrcode.com/zh/howto/code.html
阅读全文
posted @ 2019-09-26 10:24 willbin
阅读(199)
评论(0)
推荐(0)
2019年9月15日
转: Github上关于iOS的各种开源项目集合
摘要: https://blog.csdn.net/jiashaoying/article/details/79079500 下拉刷新 EGOTableViewPullRefresh - 最早的下拉刷新控件。 SVPullToRefresh - 下拉刷新控件。 MJRefresh - 仅需一行代码就可以为U
阅读全文
posted @ 2019-09-15 21:26 willbin
阅读(1162)
评论(0)
推荐(0)
2019年8月2日
Vertical Center TextView . 竖直居中的UITextView
摘要: @interface VerticalCenterTextView : UITextView @end @implementation VerticalCenterTextView - (void) layoutSubviews; { [super layoutSubviews]; CGSize contentSize = [self sizeThatFits:CG...
阅读全文
posted @ 2019-08-02 15:29 willbin
阅读(254)
评论(0)
推荐(0)
2019年7月13日
tree 命令
摘要: LMXMN117:Mac Driver will.wei$ tree -N >/tmp/savs.txt (1)tree -a 显示所有文件和目录 LMXMN117:Mac Driver will.wei$ tree -N >/tmp/savs.txt LMXMN117:Mac Driver wil
阅读全文
posted @ 2019-07-13 00:35 willbin
阅读(180)
评论(0)
推荐(0)
2019年7月8日
FFmpeg
摘要: 1 格式转换 2 视转音 3 字幕? https://ffmpeg.org/ https://github.com/kewlbear/FFmpeg-iOS-build-script https://www.jianshu.com/p/ecfbebadbe55 https://github.com/b
阅读全文
posted @ 2019-07-08 14:48 willbin
阅读(174)
评论(0)
推荐(0)
2019年6月27日
Anyhashable打印格式化
摘要: NSLog("<LocalContactMatch>: \(bestAttemptContent.userInfo as AnyObject)")
阅读全文
posted @ 2019-06-27 21:34 willbin
阅读(206)
评论(0)
推荐(0)
下一页
公告