03 2013 档案

摘要:- (void)sendRequest:(id)sender { NSURL *URL = [NSURL URLWithString:@"http://www.google.com/speech-api/v1/recognize?xjerr=1&client=chromium&lang=zh-... 阅读全文
posted @ 2013-03-23 11:55 沙影无痕 阅读(318) 评论(0) 推荐(0)
摘要:设置ios 图标右上角数字方法:int number = 0;[UIApplicationsharedApplication].applicationIconBadgeNumber = number; 阅读全文
posted @ 2013-03-21 15:19 沙影无痕 阅读(317) 评论(0) 推荐(0)
摘要:(1)在一些开发中需要向服务器上传带有参数的URL request,参数中免不了会有中文字符,含有中文字符的URL是没法直接传送出去的,需要经过UTF8编码。然而在经过UTF8编码以后,上传到服务器的中文参数都产生了乱码;这里使用的是ASIHTTPRequest;(2)解决方案,替换ASIHTTPR... 阅读全文
posted @ 2013-03-16 10:52 沙影无痕 阅读(164) 评论(0) 推荐(0)
摘要:1 setValue: forKey:的定义@interface NSMutableDictionary(NSKeyValueCoding)/* Send -setObject:forKey: to the receiver, unless the value is nil, in which ca... 阅读全文
posted @ 2013-03-13 09:08 沙影无痕 阅读(149) 评论(0) 推荐(0)