Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
PNChart
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kevinzhow
2015-06-24 23:20:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5816ce1bbee97f8690e6fe99c4c5d4214330067
a5816ce1
1 parent
f2008bfe
values of type 'NSInteger' should not be used as format arguments;
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
PNChart/PNLineChart.m
PNChart/PNLineChart.m
View file @
a5816ce
...
...
@@ -1026,7 +1026,7 @@
[
self
.
layer
addSublayer
:
textLayer
];
[
textLayer
setFontSize
:
textheigt
/
2
];
[
textLayer
setString
:[[
NSString
alloc
]
initWithFormat
:
@"%
ld"
,(
NSInteger
)(
grade
*
100
)]];
[
textLayer
setString
:[[
NSString
alloc
]
initWithFormat
:
@"%
d"
,(
int
)(
grade
*
100
)]];
[
textLayer
setFrame
:
CGRectMake
(
0
,
0
,
textWidth
,
textheigt
)];
[
textLayer
setPosition
:
CGPointMake
(
pointCenter
.
x
,
textStartPosY
)];
textLayer
.
contentsScale
=
[
UIScreen
mainScreen
].
scale
;
...
...
Please
register
or
login
to post a comment