摘要: //获得当前时间距1970的秒数 - (NSString *)setCurrTimeLenght { NSTimeInterval time = [[NSDate date] timeIntervalSince1970]; NSString *timeLenght = [NSString strin 阅读全文
posted @ 2016-03-24 16:42 望月Jarvis 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #pragma mark -- 判断字符串是否是纯数字 + (BOOL)isPureInt:(NSString *)string{ NSScanner* scan = [NSScanner scannerWithString:string]; int val; return [scan scanIn 阅读全文
posted @ 2016-03-24 16:13 望月Jarvis 阅读(2308) 评论(0) 推荐(1) 编辑
摘要: #pragma mark -- 判断字符串是否只存在只有空格 + (BOOL)isBlankString:(NSString *)string{ if (string == nil) { return YES; } if (string == NULL) { return YES; } if ([s 阅读全文
posted @ 2016-03-24 16:12 望月Jarvis 阅读(324) 评论(0) 推荐(0) 编辑
摘要: //json + (NSArray *)setLists:(NSString *)json { NSData *data = [json dataUsingEncoding:NSUTF8StringEncoding]; NSArray* aJsons = [NSJSONSerialization J 阅读全文
posted @ 2016-03-24 16:11 望月Jarvis 阅读(580) 评论(0) 推荐(0) 编辑
摘要: #pragma mark -- 参数的排序 + (NSMutableString*)postSignParamet:(NSString*)method privateParam:(NSMutableDictionary*)param { NSMutableString* lastParam = [[ 阅读全文
posted @ 2016-03-24 16:09 望月Jarvis 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 很多事时候弹出框只是为了提示用户,为了避免让用户过多不必要的操作,让弹出框自动消失就可以了 + (void)showDismissedAlertDialog:(NSString*)message { UIAlertView* alert = [[UIAlertView alloc] initWith 阅读全文
posted @ 2016-03-24 15:17 望月Jarvis 阅读(575) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - 获取音频文件时长 aFilePath:语音文件的路径 - (NSString *)getVoiceFileInfoByPath:(NSString *)aFilePath{ NSString *path = NSSearchPathForDirectoriesInDom 阅读全文
posted @ 2016-03-24 14:54 望月Jarvis 阅读(658) 评论(0) 推荐(0) 编辑
摘要: AFN 请求 https get 在pch文件#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES在请求数据那里AFSecurityPolicy *securityPolicy = [AFSecurityPolicy defaultPolicy];... 阅读全文
posted @ 2015-11-06 08:31 望月Jarvis 阅读(205) 评论(0) 推荐(0) 编辑
摘要: //指定刷新某一行 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:1]; [_readTableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPa... 阅读全文
posted @ 2015-11-06 08:29 望月Jarvis 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1.在Info.plist 添加下面两个NSLocationAlwaysUsageDescription //NS位置总是使用描述NSLocationWhenInUseUsageDescription //NS位置在使用使用描述2.在工程里“Build Phases”—> Link Binary... 阅读全文
posted @ 2015-05-22 20:05 望月Jarvis 阅读(299) 评论(0) 推荐(0) 编辑