摘要: 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 阅读(409) 评论(0) 推荐(0) 编辑
摘要: rcmobile://messages rcmobile://badge rcmobile://dialer rcmobile://open rcmobile://sms?type=new rcmobile://call?number=5719 阅读全文
posted @ 2016-11-17 15:14 willbin 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1:Snippets Xcode 代码段的文件表示 ~/Library/Developer/Xcode/UserData/CodeSnippets/ 2: Services 可以添加workflow到这里来方便工作 ~/Library/Services/ 阅读全文
posted @ 2016-03-21 15:15 willbin 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 1:UILabel 加NSMutableAttributedString用下面的方法计算高度. contentSize = [dstAttrStr boundingRectWithSize:CGSizeMake(_contentLabel.frame.size.width, 100000) ... 阅读全文
posted @ 2015-12-15 10:47 willbin 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 问题:使用sourceTree做版本管理后, Xcode工程每次打开, 都会有几个xcodeworkspace之类的文件提示改动了.如果想ignore掉, 有两种情况:1:整个工程没有纳入版本管理之前, 直接在工程的主文件夹添加 .gitignore 文件, 内容参考:https://github.... 阅读全文
posted @ 2014-07-03 10:53 willbin 阅读(4316) 评论(0) 推荐(0) 编辑
摘要: // _closeContainerBar.alpha = 0.7; _closeContainerBar.backgroundColor =[[UIColor blackColor] colorWithAlphaComponent:0.7]; 阅读全文
posted @ 2014-06-30 21:57 willbin 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 经常会有工程中涉及到第三方的代码, 但这些代码有的是ARC的, 有的不是.这样的话, 在与你的工程中集成的时候就会出现问题.如果你的工程是开启ARC的, 那就需要对某些文件禁用ARC, (-fno-objc-arc)如果你的工程是关闭ARC的, 那就需要对某些文件开启ARC.(-fobjc-arc)... 阅读全文
posted @ 2013-10-20 23:23 willbin 阅读(1819) 评论(0) 推荐(0) 编辑
摘要: brew install swiftplantuml https://github.com/MarcoEidinger/SwiftPlantUML 在文件目录下执行 swiftplantuml ./*.swift 然后就会打开 https://www.planttext.com/ 进行编辑展示. 阅读全文
posted @ 2023-02-18 21:31 willbin 阅读(33) 评论(0) 推荐(0) 编辑
摘要: //改变文件大小 ffmpeg -i big.mp4 -s 2000x1000 small.mp4 //改变文件类型 ffmpeg -i aaa.avi bbb.mp4 阅读全文
posted @ 2020-12-31 12:51 willbin 阅读(63) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2007/07/english_punctuation.html 标点符号的英语名称 分享按钮 作者: 阮一峰 日期: 2007年7月31日 根据网上的资料,我整理了一份常见标点符号的英语名称。 . period or full stop 阅读全文
posted @ 2020-02-25 12:10 willbin 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 需要把数段文字中的第一个单词变大写. 1.打开Sublime Text Find -> Replace... 3. Replace all后替换一轮, 再有再替换. ps: 查找正则 (" = ".+ )([A-Z]) 替换正则 $1\L$2 阅读全文
posted @ 2020-02-16 21:23 willbin 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(173) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/jiashaoying/article/details/79079500 下拉刷新 EGOTableViewPullRefresh - 最早的下拉刷新控件。 SVPullToRefresh - 下拉刷新控件。 MJRefresh - 仅需一行代码就可以为U 阅读全文
posted @ 2019-09-15 21:26 willbin 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: @interface VerticalCenterTextView : UITextView @end @implementation VerticalCenterTextView - (void) layoutSubviews; { [super layoutSubviews]; CGSize contentSize = [self sizeThatFits:CG... 阅读全文
posted @ 2019-08-02 15:29 willbin 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(164) 评论(0) 推荐(0) 编辑
摘要: NSLog("<LocalContactMatch>: \(bestAttemptContent.userInfo as AnyObject)") 阅读全文
posted @ 2019-06-27 21:34 willbin 阅读(202) 评论(0) 推荐(0) 编辑