JNYJ

JNYJ - IOS - DEV

 

2012年4月26日

For(NSObject *item in array):无序 For(int i=0: i<10; i++): 顺序

摘要: For(NSObject *item in array): 由系统确定! 以最优,高效率进行 查看所有数据。For(int i=0: i<10; i++): 顺序查看所有数据。 阅读全文

posted @ 2012-04-26 10:30 JNYJ 阅读(541) 评论(0) 推荐(0) 编辑

2012年2月23日

异步下载 NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://%@", self.adLogoUrl]];

摘要: if(self.adLogoUrl) { dispatch_queue_t queue_t = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul); dispatch_async(queue_t, ^{ [CommonFuncs doLogForTemp:@"url:(%@)",self.adLogoUrl]; NSURL *url = [NSURLURLWithString:[NSStringstringWithFormat:@"http://%@", self.adLogoUrl] 阅读全文

posted @ 2012-02-23 12:56 JNYJ 阅读(1020) 评论(0) 推荐(0) 编辑

2011年10月20日

Mutiple targets for ios

摘要: BUILDING FOR MULTIPLE TARGETS IN XCODESome months ago, I needed to create new versions of my app’s. I wanted to do this without duplicating any code or projects.So I did some research and decided to figure out how to build towards multiple targets in XCode.This is something I shied away from for a l 阅读全文

posted @ 2011-10-20 16:48 JNYJ 阅读(569) 评论(0) 推荐(0) 编辑

2011年9月26日

转 --》 ASIHTTPRequest 详解, http 请求终结者 ~~嘿嘿

摘要: ASIHTTPRequest 详解, http 请求终结者 ~~嘿嘿管理提醒:本帖被 gagaga 执行加亮操作(2011-03-22)今天把这个的官方文档翻译的出来以做分享~让迷途之人有路可寻~ASIHTTPRequest是一款极其强劲的HTTP访问开源项目。让简单的API完成复杂的功能,如:异步请求,队列请求,GZIP压缩,缓存,断点续传,进度跟踪,上传文件,HTTP认证在新的版本中,还加入了Objective-C闭包Block的支持,让我们的代码更加轻简灵活。下面就举例说明它的API用法。发起一个同步请求同步意为着线程阻塞,在主线程中使用此方法会使应用Hang住而不响应任何用户事件。所以 阅读全文

posted @ 2011-09-26 11:44 JNYJ 阅读(262) 评论(0) 推荐(0) 编辑

2011年7月18日

http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

摘要: Backspace PrologueMistakes and learnings of an iPhone developerBrowse:Home/iPhone Development/In App Purchases: A Full WalkthroughIn App Purchases: A Full WalkthroughByTroyonJanuary 17, 2010At first glance, adding in-app purchases seems like it would be a walk in the park. Apple providesplentyofdocu 阅读全文

posted @ 2011-07-18 12:09 JNYJ 阅读(479) 评论(0) 推荐(0) 编辑

2011年7月5日

[IPhone开发]NSDateFormatter的格式字符串

摘要: [IPhone开发]NSDateFormatter的格式字符串2010-10-08 16:27:18|分类:iphone|标签:无|字号订阅IPhone开发中, OBjective-C中的NSDate是一个挺讨厌的类型, 自己不到转换成字符串的类型,还得带一个NSDateFormatter的类型.官方文档上对NSDateFormatter的格式串好像没详讲, 或许有,我没找到, 每次使用都是用谷歌摸索.有幸找到一份比较全的文档, 翻译过来共享:a: AM/PM (上午/下午)A: 0~86399999 (一天的第A微秒)c/cc: 1~7 (一周的第一天, 周天为1)ccc: Sun/Mon/ 阅读全文

posted @ 2011-07-05 11:16 JNYJ 阅读(919) 评论(0) 推荐(0) 编辑

2011年6月30日

iPhone 小记 。。。

摘要: 2011 06 30: 修改view controller对象property 时,一定要在当前view 被推出后或view 显示didappear 后 进行设置其property 时,因为这时当前view controller 对象才被创建成功。2011 07 12: Create PJT and PJT management 1, PJT structure(MVC): Data Models, View Controller/View, Controllers(BGP);Data Converter, Data Access, Utilities. Upgrade: Basi... 阅读全文

posted @ 2011-06-30 11:31 JNYJ 阅读(181) 评论(0) 推荐(0) 编辑

2011年6月7日

Xcode strange warning - Multiple build commands for output file

摘要: http://stackoverflow.com/questions/2718246/xcode-strange-warning-multiple-build-commands-for-output-fileup vote15down voteThis is easily caused when you add git based subprojects. Xcode isn't smart enough to ignore the .git subfolder even though you can't see it from finder, so it will get v 阅读全文

posted @ 2011-06-07 16:53 JNYJ 阅读(1567) 评论(0) 推荐(0) 编辑

2011年5月17日

静态方法 使用过程中 问题!

摘要: 1: [NSMutableDictionary dictionary]; 阅读全文

posted @ 2011-05-17 15:43 JNYJ 阅读(218) 评论(0) 推荐(0) 编辑

2011年5月4日

如何实现程序内购买(In app purchase)?

摘要: XXXXXX...... 未整理!!!!#pragma mark IBAction methods- (IBAction) back: (id) sender;{ [self.target performSelector:self.action withObject:nil]; [self dismissModalViewControllerAnimated:YES];}- (IBAction) unlock: (id) sender{ if ([self assetNetworkAvailable]) { NSString *productID = nil; if ([self.arrayO 阅读全文

posted @ 2011-05-04 17:56 JNYJ 阅读(3842) 评论(0) 推荐(0) 编辑

导航