- 博客(11)
- 收藏
- 关注
转载 OC ----关于时间的处理
//获得当前时间距1970的秒数- (NSString *)setCurrTimeLenght{ NSTimeInterval time = [[NSDate date] timeIntervalSince1970]; NSString *timeLenght = [NSString stringWithFormat:@"%0.0f",time];...
2016-03-24 16:42:00
147
转载 OC-- 判断字符串是否是纯数字
#pragma mark -- 判断字符串是否是纯数字+ (BOOL)isPureInt:(NSString *)string{ NSScanner* scan = [NSScanner scannerWithString:string]; int val; return [scan scanInt:&val] && [scan...
2016-03-24 16:13:00
687
转载 OC 判断字符串是否只存在只有空格
#pragma mark -- 判断字符串是否只存在只有空格+ (BOOL)isBlankString:(NSString *)string{ if (string == nil) { return YES; } if (string == NULL) { return YES; }...
2016-03-24 16:12:00
162
转载 将Json字符串转换为数组
//json+ (NSArray *)setLists:(NSString *)json{ NSData *data = [json dataUsingEncoding:NSUTF8StringEncoding]; NSArray* aJsons = [NSJSONSerialization JSONObjectWithData:data ...
2016-03-24 16:11:00
148
转载 调用接口时对参数的排序、生成签名、生成随机数,获取唯一标示符
#pragma mark -- 参数的排序+ (NSMutableString*)postSignParamet:(NSString*)method privateParam:(NSMutableDictionary*)param { NSMutableString* lastParam = [[NSMutableString alloc]init];...
2016-03-24 16:09:00
511
转载 关于UIAlertView弹出警告框自动消失
很多事时候弹出框只是为了提示用户,为了避免让用户过多不必要的操作,让弹出框自动消失就可以了+ (void)showDismissedAlertDialog:(NSString*)message { UIAlertView* alert = [[UIAlertView alloc] initWithTitle:nil //NSLocalizedString(@...
2016-03-24 15:17:00
185
转载 AVAudioPlayer 获取语音的长度(时间)
#pragma mark - 获取音频文件时长 aFilePath:语音文件的路径- (NSString *)getVoiceFileInfoByPath:(NSString *)aFilePath{ NSString *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirecto...
2016-03-24 14:54:00
692
转载 AFN 请求 https get
AFN 请求 https get 在pch文件#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES在请求数据那里AFSecurityPolicy *securityPolicy = [AFSecurityPolicy defaultPolicy]; securityPolicy.allowInv...
2015-11-06 08:31:00
108
转载 TableView — reloadData 刷新
//指定刷新某一行 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:1]; [_readTableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil] withRowAnimation:UITable...
2015-11-06 08:29:00
119
转载 mapView 地图视图
1.在Info.plist 添加下面两个NSLocationAlwaysUsageDescription //NS位置总是使用描述NSLocationWhenInUseUsageDescription //NS位置在使用使用描述2.在工程里“Build Phases”—> Link Binary With Libraries 添加 MapKit.fra...
2015-05-22 20:05:00
407
转载 后台播放音频设置
AVAudioSession *session = [AVAudioSession sharedInstance]; [session setActive:YES error:nil]; [session setCategory:AVAudioSessionCategoryPlayback error:nil];转载于:https://www.cnblogs.co...
2015-05-22 20:03:00
252
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人