01 2015 档案

摘要:参考官方文档“https://developer.apple.com/library/ios/qa/qa1686/_index.html”注意,需要在Info.plist文件中添加icon到“Icon files”中才生效,测试环境Xcode6.1,ios8512x512iTunesArtworkA... 阅读全文

posted @ 2015-01-22 10:12 trako 阅读(440) 评论(0) 推荐(0)

摘要:问题现象使用jpush推送消息,当手机端应用已进入后台时,收到消息后不会触发回调,只能点击通知栏的消息后才触发回调。问题解决如果是用jpush,在jpush上发送信息时勾选content-available可用,手机端会走回调didReceiveRemoteNotification-fetchCom... 阅读全文

posted @ 2015-01-21 09:02 trako 阅读(208) 评论(0) 推荐(0)

摘要:- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ UIScrollView *scrollView = (UIScrollView *)[self.view viewWithTag:WIN_TAG_SCROLLVIEW]; ... 阅读全文

posted @ 2015-01-21 08:59 trako 阅读(284) 评论(0) 推荐(0)

摘要:UIPasteboard*pasteboard = [UIPasteboardgeneralPasteboard];pasteboard.string=self.label.text; 阅读全文

posted @ 2015-01-20 15:29 trako 阅读(145) 评论(0) 推荐(0)

摘要:问题现象客户要求支持离线语音播报文字问题解决ios7版本提供了该接口,目测效果还可以,支持中文,NSString *text = @"南昌阴转多云";AVSpeechSynthesizer *av = [[AVSpeechSynthesizer alloc] init];AVSpeechUttera... 阅读全文

posted @ 2015-01-16 10:53 trako 阅读(269) 评论(0) 推荐(0)

摘要:问题现象某些时候使用了一些deprecated的方法,每次编译xcode都会有提示,想去掉这些指定遗弃方法使用的提示问题解决#define WC_DeprecatedDeclarationsWarning(stuff) \do { \_Pragma("clang diagnostic push") ... 阅读全文

posted @ 2015-01-13 16:04 trako 阅读(271) 评论(0) 推荐(0)

摘要:问题现象已知服务器返回日期字符串“Thu Jan 01 08:00:00 CST 1970”,通过如下方式转换成时间戳失败(模拟器成功,真机失败),date为nil。 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [fo... 阅读全文

posted @ 2015-01-09 14:04 trako 阅读(476) 评论(0) 推荐(0)

导航