- 博客(9)
- 资源 (3)
- 收藏
- 关注
原创 UItextView禁用手势同时响应富文本按钮
需求:1、UITextView中加入CheckBox(UIButton),使用富文本方式实现。2、UITextView在非编辑状态下不可点击(添加UITextView到UITableViewCell,textView需要响应Cell父视图事件),但可以点击CheckBox。3、UITextView在编辑状态下恢复点击状态。实现:新建一个UITextView的分类,m文件加入以上...
2019-04-29 09:20:29
1099
原创 iOS判断横竖屏的宏
#define IsPortrait ([[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPortrait || [[UIApplication sharedApplication] statusBarOrientation] == UIInterfaceOrientationPort...
2018-04-02 16:59:50
3076
原创 在iOS健康应用中添加正念数据
HKCategoryTypeIdentifierMindfulSession对应的HKCategoryValue为HKCategoryValueNotApplicable HKCategoryType *categoryType = [HKCategoryType categoryTypeForIdentifier:HKCategoryTypeIdentifierMindfulSession...
2018-04-02 10:24:24
1212
转载 iOS 截图 截取屏幕 背景透明
UIGraphicsBeginImageContextWithOptions(CGSize size, BOOL opaque, CGFloat scale) 第二个参数,NO,YES 控制是否透明背景透明时,如果保存图像到相册,会自动添加白色背景。所以需要保存图像为文件,然后通过SHERE方式导出。...
2018-03-12 09:52:51
2882
转载 MAC清理DS_Store和._文件
打开终端输入find . -name .DS_Store -type f -delete ; find . -type d | xargs dot_clean
2018-03-08 20:24:46
3243
原创 使用gitee(码云)同步XCode代码块
一、XCode代码块所在位置~/Library/Developer/Xcode/UserData/CodeSnippets二、打开终端,把CodeSnippets文件夹上传到码云cd ~/Library/Developer/Xcode/UserData/CodeSnippetsgit initgit add .git commit -m "Init code snippets"git re...
2018-03-07 10:11:20
3055
转载 几个常用的XCode快捷键
command + control + e 修改变量名称的快捷键。相当于Edit ->Refactor->Rename(进行重构方法或者变量等) command + option + enter 同时显示2个页面在类或者方法名上执行Option + Left点击操作使用内联帮助可帮开发者快速学习类或代码片段的用法。command + 3 来打开 Find navigator。Comm...
2018-03-07 09:46:37
625
转载 使用git管理gitee(码云)项目
简易的命令行入门教程:Git 全局设置:git config --global user.name "Willed"git config --global user.email "user@mail.com"创建 git 仓库:mkdir ddddcd ddddgit inittouch README.mdgit add README.mdgit commit -m "first co...
2018-03-06 11:34:23
1649
iOS 12.2正式版本真机测试包 (16E226)
2019-04-07
beamOff,MAC优化必备
2018-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人