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

update

parent 380abbda
......@@ -381,17 +381,18 @@
+ (NSString *)getTelephonyInfo {
CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [info subscriberCellularProvider];
NSString *mCarrier = [NSString stringWithFormat:@"%@",[carrier carrierName]];
return mCarrier;
if (carrier) {
return [carrier carrierName];
}
return @"";
}
/**
* 内存大小,单位:兆
*/
+ (NSString *)getTotalMemorySize {
double resultSize = [NSProcessInfo processInfo].physicalMemory/1024/1024;
return [NSString stringWithFormat:@"%f", resultSize];
unsigned long long resultSize = [NSProcessInfo processInfo].physicalMemory/1024/1024;
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