1. 获取IOS设备的UUID
导入头文件#import <AdSupport/AdSupport.h>
NSString *UUID = [[[ASIdentifierManager sharedManager]advertisingIdentifier]UUIDString];
2. GB2312编码
NSStringEncoding enc = CFStringConvertEncodingToNSStringEncoding (kCFStringEncodingGB_18030_2000);
3. 秒数转化为时间格式时分秒
+ (NSString *) getHHMMSSFromSS:(int)totalScoends {
int HH = totalScoends / 3600;//当totalScoends>3600时,除以得到小时
int MM = (totalScoends / 60) % 60;//当60< totalScoends <3600,除以60再向60取余得到分钟
int SS = totalScoends % 60;//当0< totalScoends <60时,向60取余等到秒数
NSString *HHMMSS = [NSString stringWithFormat:@"%02d:%02d:%02d",HH,MM,SS];
return HHMMSS;
}