新版本
This commit is contained in:
@@ -63,6 +63,18 @@
|
||||
return hexStr;
|
||||
}
|
||||
|
||||
+(NSString*)leftAddZero:(NSInteger)totle andStr:(NSString*)str{
|
||||
NSMutableString*str1=[NSMutableString string];
|
||||
NSInteger strLenth=str.length;
|
||||
|
||||
while (strLenth<totle) {
|
||||
[str1 appendString:@"0"];
|
||||
strLenth++;
|
||||
}
|
||||
[str1 appendString:str];
|
||||
return str1;
|
||||
}
|
||||
|
||||
// 十 转十六
|
||||
+(NSString *)ToHex:(long long int)tmpid
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user