摘要:
在程序启动代理内加入如下代码:NSString *applicationDocumentsDirectory() {return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; }void UncaughtExceptionHandler(NSException *exception) { NSArray *arr = [exception callStackSymbols]; NSString *reason = [exception reason];. 阅读全文
摘要:
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {instead为if ([inputStream streamStatus] == (NSStreamStatus)NSStreamEventErrorOccurred) {return [[NSDate date] addTimeInterval:maxAge];instead为return [[NSDate date] dateByAddingTimeInterval:maxAge]; 阅读全文