摘要: 1 - (void)drawRect:(CGRect)rect 2 { 3 NSString *longText = @"CoreText"; /* ... */ 4 NSRange rang =[self.hightString rangeOfString:longText]; ... 阅读全文
posted @ 2015-03-28 15:40 ifgyong 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1.加文字-(UIImage *)addText:(UIImage *)img text:(NSString *)text1{ //get image width and height int w = img.size.width; int h = img.size.height; CGColorS... 阅读全文
posted @ 2015-03-13 10:24 ifgyong 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 这是MD5加密- (NSString *)MD5Hash{ const char *cStr = [self UTF8String]; unsigned char result[16]; CC_MD5(cStr, strlen(cStr), result); NSString * string= [... 阅读全文
posted @ 2015-03-08 20:45 ifgyong 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 先上去github 或者任意托管的网站。注册账号,新建仓库,在本地运行Xcode 新建工程,新建工程的时候 勾上本地 的仓库,然后 在本地的项目根目录执行下边的命令:git remote add origin https://github.com/littleniu/zbar-.git //和远程... 阅读全文
posted @ 2015-02-05 09:25 ifgyong 阅读(157) 评论(0) 推荐(0) 编辑
摘要: iOS开发UI篇—UITabBarController简单介绍一、简单介绍UITabBarController和UINavigationController类似,UITabBarController也可以轻松地管理多个控制器,轻松完成控制器之间的切换,典型的例子就是QQ、微信等应⽤。二、UITabB... 阅读全文
posted @ 2015-01-30 16:26 ifgyong 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 古人云“工欲善其事必先利其器”,打造一个强大的开发环境,是立即提升自身战斗力的绝佳途径!晾一下我的武器库,欢迎大家选用:)全能搜索家CodePilot 2.0------------------------------------你要找的是文件?是文件夹?是代码?Never Mind,CMD+SHI... 阅读全文
posted @ 2015-01-19 12:08 ifgyong 阅读(110) 评论(0) 推荐(0) 编辑
摘要: afconvert /Users/xiaoye/Downloads/cat.caf /Users/xiaoye/Downloads/cat1.caf -d ima4 -f caff -v; 阅读全文
posted @ 2015-01-11 10:18 ifgyong 阅读(101) 评论(0) 推荐(0) 编辑
摘要: BlockApple 在C, Objective-C, C++加上Block這個延申用法。目前只有Mac 10.6 和iOS 4有支援。Block是由一堆可執行的程式組成,也可以稱做沒有名字的Function (Anonymous function)。如果是Mac 10.6 或 iOS 4.0 之前... 阅读全文
posted @ 2014-11-27 17:55 ifgyong 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 导入框架:代码:[cpp]view plaincopy#import#import@interfaceMsgPlaySound:NSObject{SystemSoundIDsound;//系统声音的id取值范围为:1000-2000}-(id)initSystemShake;//系统震动-(id)i... 阅读全文
posted @ 2014-11-18 15:44 ifgyong 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 推送通知的步骤:1、询问是否允许推送通知。2、如果用户允许在APPDELEGATE 中实现- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*... 阅读全文
posted @ 2014-11-13 20:59 ifgyong 阅读(186) 评论(0) 推荐(0) 编辑