自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 OC ----关于时间的处理

//获得当前时间距1970的秒数- (NSString *)setCurrTimeLenght{ NSTimeInterval time = [[NSDate date] timeIntervalSince1970]; NSString *timeLenght = [NSString stringWithFormat:@"%0.0f",time];...

2016-03-24 16:42:00 136

转载 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 630

转载 OC 判断字符串是否只存在只有空格

#pragma mark -- 判断字符串是否只存在只有空格+ (BOOL)isBlankString:(NSString *)string{ if (string == nil) { return YES; } if (string == NULL) { return YES; }...

2016-03-24 16:12:00 151

转载 将Json字符串转换为数组

//json+ (NSArray *)setLists:(NSString *)json{ NSData *data = [json dataUsingEncoding:NSUTF8StringEncoding]; NSArray* aJsons = [NSJSONSerialization JSONObjectWithData:data ...

2016-03-24 16:11:00 132

转载 调用接口时对参数的排序、生成签名、生成随机数,获取唯一标示符

#pragma mark -- 参数的排序+ (NSMutableString*)postSignParamet:(NSString*)method privateParam:(NSMutableDictionary*)param { NSMutableString* lastParam = [[NSMutableString alloc]init];...

2016-03-24 16:09:00 488

转载 关于UIAlertView弹出警告框自动消失

很多事时候弹出框只是为了提示用户,为了避免让用户过多不必要的操作,让弹出框自动消失就可以了+ (void)showDismissedAlertDialog:(NSString*)message { UIAlertView* alert = [[UIAlertView alloc] initWithTitle:nil //NSLocalizedString(@...

2016-03-24 15:17:00 177

转载 AVAudioPlayer 获取语音的长度(时间)

#pragma mark - 获取音频文件时长 aFilePath:语音文件的路径- (NSString *)getVoiceFileInfoByPath:(NSString *)aFilePath{ NSString *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirecto...

2016-03-24 14:54:00 671

转载 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 100

转载 TableView  — reloadData     刷新

//指定刷新某一行 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:1]; [_readTableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil] withRowAnimation:UITable...

2015-11-06 08:29:00 108

转载 mapView 地图视图

1.在Info.plist 添加下面两个NSLocationAlwaysUsageDescription //NS位置总是使用描述NSLocationWhenInUseUsageDescription //NS位置在使用使用描述2.在工程里“Build Phases”—> Link Binary With Libraries 添加 MapKit.fra...

2015-05-22 20:05:00 378

转载 后台播放音频设置

AVAudioSession *session = [AVAudioSession sharedInstance]; [session setActive:YES error:nil]; [session setCategory:AVAudioSessionCategoryPlayback error:nil];转载于:https://www.cnblogs.co...

2015-05-22 20:03:00 238

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除