octopress写文章步骤

摘要: 1. 进入到octopress目录2. 拉取最新提交的source分支代码> git commit -m "本地变动"> git pull origin source> 合并冲突3. 进入 _deploy目录> git pull origin master> 合并冲突 阅读全文
posted @ 2015-08-13 00:05 ZainH 阅读(139) 评论(0) 推荐(0)

多台mac公用octorpess

摘要: 一、Octopress目录结构Octopress的仓库目录下有两个branch,source和master。source分支下保存Octopress的源代码,我们需要用他们生成博客,该分支保存在Octopress本地仓库的根目录下;master分支下保存生成的博客内容,该分支在Octopress本地... 阅读全文
posted @ 2015-08-10 10:59 ZainH 阅读(201) 评论(0) 推荐(0)

使用github+octopress搭建个人技术博客

摘要: 1. git clone git://github.com/imathis/octopress.git octopress2.cd octopressgem install bundlerbundle install3.登录Github,假设你的用户名是username,首先要新建一个命名为 us... 阅读全文
posted @ 2015-08-09 17:38 ZainH 阅读(229) 评论(0) 推荐(0)

让子类必须重写父类的方法

摘要: //在编写子类的时候要重载父类的方法,如果子类不重写方法,则跑出异常让程序崩溃- (void)superClassMethod { [NSException raise:NSInternalInconsistencyException format:@"It's an e... 阅读全文
posted @ 2015-08-07 01:00 ZainH 阅读(1068) 评论(0) 推荐(0)

NSMutableAttributedString可变字符串使用

摘要: //原始数据字符串 NSString *string = @"我是好人我是好人我是个好人额鹅鹅鹅鹅鹅鹅饿哇哇哇哇哇哇哇"; // 创建可变属性化字符串 NSMutableAttributedString *attrString = [[NSMutableAttrib... 阅读全文
posted @ 2015-08-07 00:40 ZainH 阅读(295) 评论(0) 推荐(0)

UITableView问题集锦

摘要: 问题: section header 向上滚动时,卡在导航栏下方【粘附性】》 创建tableView对象时,使用 group枚举类型问题: cell里面有 subView添加了手势点击事件后,cell不能被执行点击事件》 在subView的手势点击回调函数中,//手动执行tableView的cell... 阅读全文
posted @ 2015-08-07 00:21 ZainH 阅读(198) 评论(0) 推荐(0)

Bugly使用注意

摘要: 一、使用符号表还原堆栈的步骤: 》编译打包当前的代码,产生 product.app 》右键product.app -> show in finder 》拷贝bugly符号表生成工具文件【一个sh,一个jar】到product.app目录 》终端执行:java -jar bug... 阅读全文
posted @ 2015-08-03 17:01 ZainH 阅读(536) 评论(0) 推荐(0)

XCode编译产生的app文件和dYSM文件路径

摘要: ...//Library/Developer/XCode/DerivedData/-/Build/Products下有:Debug-iphoneos 和 Release-iphoneos以及Debug-iphonesimulator 阅读全文
posted @ 2015-08-02 23:07 ZainH 阅读(3258) 评论(0) 推荐(0)

App在发布后监测崩溃情况

摘要: 我们的App处于程序开发时,如果出现崩溃,很容易通过debug发现引起崩溃的代码。一旦,我们的App处于发布、测试,我们无法通过调试代码来发现崩溃的时候,怎么能找到引起App崩溃的问题了?思路: 1. App必须有捕获异常的代码【使用iOS提供的异常回调函数,捕捉到引起代码崩溃的原因】 2. 讲... 阅读全文
posted @ 2015-08-02 22:01 ZainH 阅读(313) 评论(0) 推荐(0)

xcode找到App的scheme,只出现mac的scheme

摘要: 第一步、第二步、第三步、 阅读全文
posted @ 2015-07-31 09:42 ZainH 阅读(324) 评论(0) 推荐(0)