What Is Software Design?

程式設計不是 “building software”,而是 “designing software”。

2013年11月7日 星期四

git - 在 master 上面加上新 tag

git - 在 master 上面加上新 tag git tag -a (v1.3branch) -m "Release v1.3 Tag" ==================================== git tag v2.4.0  <===給tag git push --tags <==tag push 上...

2013年11月6日 星期三

判斷是否為 iPhone 5

#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO) 所以當使用時,僅需照以下寫法使用即可囉if (iPhone5)//do something for iPhone 5else//do something for iPhone 4s 4 3GS et...

ios table view 要把 Header table 拿掉

//設置Header table的高度 - (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {     return 1; ...

cocoapods 的更新指令

要更新 cocoapods sudo gem update cocoapods 要更新 podfile內的版本 pod upd...