Xcode Shortcuts

摘要: Description:⌘: Command ⌥: Option ⌃: Control ←↑↓→: Left, Up, Down, Right ⌫: Delete ↩: Enter ⇧: Shift →|: Tab ⇪: Caps LockWorkspace Preferences:⌘ + ,Selecting Files File History popup: ⌃ 1 Previous file: ⌘⌃← Next file: ⌘⌃→ Toggle .h and .m: ⌘⌃↑ / ⌘⌃↓ Open quickly: ⌘⇧ OBuilding... 阅读全文
posted @ 2014-01-04 17:29 EileenLeung 阅读(236) 评论(0) 推荐(0) 编辑

In App Purchase

摘要: 参考文章1,参考文章2,参考文章3, 参考文章3一、Product 分类: Consumables: 应该在应用里被消费掉的。(Coupon, 生命数) Non-Consumables: 应该在应用里能永久使用的。(关卡、解锁内容) Auto-Renewable Subscriptions:... 阅读全文
posted @ 2014-01-04 17:26 EileenLeung 阅读(193) 评论(0) 推荐(0) 编辑

CoreData

摘要: Document, ref一、类的介绍 1) NSManagedObjectModel : 描述应用程序的数据模型,即实体与实体的关系,也就是类似于表和表的关系 (Entity, Property, FetchRequest)。 2) NSManagedObjectContext : 参与对数据... 阅读全文
posted @ 2014-01-03 21:21 EileenLeung 阅读(189) 评论(0) 推荐(0) 编辑

Sandbox 文件存放规则

摘要: 文档1, document2, document3一、文件路径介绍/AppName.app : 1) This is the bundle directory containing the app itself. 2) Do not whrite anything to this directo... 阅读全文
posted @ 2014-01-03 21:16 EileenLeung 阅读(621) 评论(0) 推荐(0) 编辑

在 mac os 上搭建 git server

摘要: 前言:之前学习了如何使用 git 后,一直想搭建一个本机搭建一个 git server 的,一开始不知道走了弯路用了 gitosis,折腾了我好几天都没配置好。昨晚查资料发现 gitosis 早就过时了,更新很慢取而代之的是 gitolite。后来在查看 gitosis 和 gitolite 的时候发现了这篇文章,其实如果对权限要求不高的话,都不需要安装 gitosis, gitolite,gitlab 之类的管理软件,所以今天一大早起来就开始研究了,最终成功了。参考文章1, 参考文章2一、创建一个 Standard 新用户名为 git。$ sudo chmod u+w /etc/sudoer 阅读全文
posted @ 2014-01-03 11:17 EileenLeung 阅读(6410) 评论(0) 推荐(0) 编辑

Git

摘要: 一、安装配置 1、下载地址,官网文档,易懂文章(推荐阅读),《Pro Git》中文版,Xcode 5 and Git 2、修改配置文件$ git config --global user.name "GitHub Account Name"$ git config --global user.name "GitHub Account Email" $git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d 阅读全文
posted @ 2013-12-30 20:29 EileenLeung 阅读(335) 评论(0) 推荐(0) 编辑

Git and Xcode

摘要: 1、web site "New Repository" 2、为本地 git 管理的项目添加 Repository$ cd ~/ProjectName$ git remote add origin https://github.com/userName/xxx.git$ git push -u origin master # 第一次提交需要 -u,以后执行提交可以简化不再需要 -u。(原因:第一次提交不但会把本地的 master 分支内容推送到远程新的 master 分支,还会把本地的 master 分支和远程的 master 分支关联起来。) 3、为非本地 git 管理的项 阅读全文
posted @ 2013-12-28 20:28 EileenLeung 阅读(315) 评论(0) 推荐(0) 编辑

心算技巧

摘要: 一、先凑整,再补零例如:17 + 34 ----> 20 + 30 = 50 --> 50 + 1 = 51二、利用数字的特征例如 17 x 23 ---> (20 - 3) x (20 + 3) = 400 - 9 = 391三、记住一下开方 1 ~ 10的开方 根号 1 = 1 根号 6 = 2.44949 根号 2 = 1.41421356 根号 7 = 2.64575 根号 3 = 1.7320508075 根号 8 = 2 * 根号2 = 2.82842 根号 4 = 2 ... 阅读全文
posted @ 2013-12-26 13:11 EileenLeung 阅读(1371) 评论(0) 推荐(0) 编辑

AppleScript

摘要: 一、资源 1、书本 2、ide:AppleSreipt Editor 3、界面辅助软件: UIBrowser 破解方法: a)ui browser -> show package contents -> open info.plist, found “bundle id” and remember it b)remove file users/xxx/Libaray/Preferences/bundle_id.plist 注意: 这里的破解方法,暂时还没有得到验证,因为我安装的时间还不够 30 天,但是我删除了该文件,ui browser 仍然能正常运行。二、... 阅读全文
posted @ 2013-12-26 12:16 EileenLeung 阅读(765) 评论(0) 推荐(0) 编辑