原创 自定義navigation bar 支持iOS5以及iOS5以下版本的代碼
@implementation UINavigationBar (CustomImage) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed:
原创 Core+Data+常見問題的總結
參見我的帖子 www.cocoachina.com/bbs/read.php?tid-55351.html 點贊 收藏 分享 文章舉報 iOS-OSX 發佈了58 篇原創文章
原创 分享一個 能自動生成app圖標的代碼
不管是iPhone android,或者wp7,每個項目都需要做很多張不同大小的圖標 圖標每次都自己手寫生成太煩人了 我找到以前用python寫過一個縮小圖片的小程序。現在拿來改改,讓它自動生成app 的圖標。 這裏是iPhone圖標
原创 主題 : 在iOS5中使用CKEditor
我的cocoachina原帖 http://www.cocoachina.com/bbs/read.php?tid=134641 點贊 收藏 分享 文章舉報 iOS-OSX 發
原创 替代NSLog的幾種方式
//DLog will output like NSLog only when the DEBUG variable is set #ifdef DEBUG //# define NSLog(fmt, ...) NSLog((@"%s
原创 通過Runtime機制,判斷參數類型
轉載:http://blog.jobbole.com/45963/ //第一種 寫若干if判斷參數類型 - (void)parseObject:(id)object { for (id data in object) {
原创 m中選擇n個數的組合的數量
/** m中選擇n個數的組合的數量 公式:C(m, n)=m*(m-1)*(m-2)...<n個數>/n*(n-1)*(n-2)...1 eg:C(10, 5)=(10*9*8*7*6)/(5*4*3*2*1); @param
原创 看Dropbox如何使用C++進行iOS和Android跨平臺開發
http://www.cocoachina.com/applenews/devnews/2014/0606/8708.html 本文由myshire(微博)翻譯自How Dropbox Uses C++ for Cross-Plat
原创 iOS6的framework運行在iOS5或者以下版本機器上的解決辦法
我的cocoachina發帖 http://www.cocoachina.com/bbs/read.php?tid=125483
原创 stringByReplacingPercentEscapesUsingEncoding attributesOfItemAtPath
stringByReplacingPercentEscapesUsingEncoding 將UTF8編碼轉換爲漢字,可用。 string中不能含有字符“#” [string stringByReplacingPercentEscapes
原创 獲取鍵盤高度
//發送鍵盤消息 [[NSNotificationCenter defaultCenter] addObserver:self se
原创 svn常用命令
http://blog.csdn.net/jimbo_lee/article/details/12567809 以下是svn客戶端常用命令一覽: svn add [path] 別名:無 描述:添加文件或目錄到你的wc,
原创 curl libcurl
轉載,原文 http://www.cnblogs.com/hewei2012/p/3308983.html http://www.cnblogs.com/hewei2012/p/3308997.html curl的官網地址是:htt
原创 UIColor+WebColor.h web色值、rgb色值轉成UIColor
有用的代碼, /** web顏色 @param stringToConvert #cfcfcf @return UIColor */ + (UIColor *) colorWithHexString: (NSString *
原创 GCD 深入理解
http://www.raywenderlich.com/60749/grand-central-dispatch-in-depth-part-1 http://www.cocoachina.com/applenews/devnews/