摘要: 在程序启动代理内加入如下代码:NSString *applicationDocumentsDirectory() {return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; }void UncaughtExceptionHandler(NSException *exception) { NSArray *arr = [exception callStackSymbols]; NSString *reason = [exception reason];. 阅读全文
posted @ 2013-10-11 17:10 Asial 阅读(306) 评论(0) 推荐(0) 编辑
摘要: if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {instead为if ([inputStream streamStatus] == (NSStreamStatus)NSStreamEventErrorOccurred) {return [[NSDate date] addTimeInterval:maxAge];instead为return [[NSDate date] dateByAddingTimeInterval:maxAge]; 阅读全文
posted @ 2013-10-11 09:38 Asial 阅读(358) 评论(0) 推荐(0) 编辑