Commit 54638fcb authored by 翟国钧's avatar 翟国钧

update

parent 380abbda
...@@ -381,17 +381,18 @@ ...@@ -381,17 +381,18 @@
+ (NSString *)getTelephonyInfo { + (NSString *)getTelephonyInfo {
CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init]; CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [info subscriberCellularProvider]; CTCarrier *carrier = [info subscriberCellularProvider];
NSString *mCarrier = [NSString stringWithFormat:@"%@",[carrier carrierName]]; if (carrier) {
return [carrier carrierName];
return mCarrier; }
return @"";
} }
/** /**
* 内存大小,单位:兆 * 内存大小,单位:兆
*/ */
+ (NSString *)getTotalMemorySize { + (NSString *)getTotalMemorySize {
double resultSize = [NSProcessInfo processInfo].physicalMemory/1024/1024; unsigned long long resultSize = [NSProcessInfo processInfo].physicalMemory/1024/1024;
return [NSString stringWithFormat:@"%f", resultSize]; return [NSString stringWithFormat:@"%llu", resultSize];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment