Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
54638fcb
Commit
54638fcb
authored
Sep 06, 2017
by
翟国钧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
380abbda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
PhobosUtil.m
Pod/Classes/PhobosUtil.m
+6
-5
No files found.
Pod/Classes/PhobosUtil.m
View file @
54638fcb
...
...
@@ -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
];
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment