摘要: 运行vapor xcode时报错: Could not generate Xcode project: error: terminated(72): xcrun --sdk macosx --find xctest output: 解决方案:在终端运行sudo xcode-select -s /Ap 阅读全文
posted @ 2018-12-06 17:13 li625317534 阅读(420) 评论(0) 推荐(0) 编辑
摘要: Runtime 关于属性部分API的说明以及使用方法 使用Runtime机制需要引入头文件: #import <objc/runtime.h> 1: Ivar *class_copyIvarList(Class cls, unsigned int *outCount) 作用: 复制一个类中的所有属性 阅读全文
posted @ 2017-03-23 20:01 li625317534 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1 :首先安装了 pod,sourceTree(下载地址https://pan.baidu.com/s/1c1Wc5ck), 并在开元中国申请的 git 账号 2 :打开终端: cd 文件目录地址(任意文件夹,也可以是桌面) 3 :在终端中输入命令行:pod lib create 项目名称 // 这 阅读全文
posted @ 2017-03-22 14:40 li625317534 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 1.打开终端 终端输入 $ruby -v 查看ruby的版本 打印代码: 2. 更换ruby镜像 终端输入如下命令(把Ruby镜像指向taobao,避免被墙,你懂得) a.移除现有 Ruby 默认源输入以下指令 $gem sources --remove https://rubygems.org/ 阅读全文
posted @ 2016-09-26 11:13 li625317534 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-22 17:23 li625317534 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 一:工程图二: 代码区AppDelegate.h#import @interface AppDelegate : UIResponder @property (retain, nonatomic) UIWindow *window;//@property (strong, nonatomic) UI... 阅读全文
posted @ 2015-12-17 19:20 li625317534 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一:效果图效果描述:点击相框,将手机摄像头拍摄的图片或者本地图片设置为我们定义的头像功能控件:UIImageView , UIAlertController ,UITapGestureRecognizer ,UIImagePickerController首次运行的时候会提醒是否允许程序访问手机相册,... 阅读全文
posted @ 2015-12-16 18:51 li625317534 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 一: 效果图效果描述:点击空白处快速回收键盘 二: 工程图三:代码区AppDelegate.h#import @interface AppDelegate : UIResponder @property (retain, nonatomic) UIWindow *window;@endAppDele... 阅读全文
posted @ 2015-12-16 16:23 li625317534 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 一: 效果图效果描述: 点击开始按钮,进度条随着时间改变 二: 工程图三: 修改工程文件1. 这里使用手动释放的方法:点击工程名,点击右边的Build Settings,在搜索框中输入gar,把Automatic Reference Counting 改为NO2. 在AppDelegate.h中,... 阅读全文
posted @ 2015-12-15 13:21 li625317534 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 效果:描述:表视图中生成多个不同的cell,cell的高度跟文字内容的多少有关要求:需要自己在网上下载一个plis文件,然后修改两个标题一 : 创建工程文件UIAutomaticCellHeightPractce-11二 : 这里使用手动释放,所以需要修改工程文件Automatic Referenc... 阅读全文
posted @ 2015-12-14 19:23 li625317534 阅读(318) 评论(0) 推荐(0) 编辑