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
2014-12-12 01:04:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b614319dec3ea08a6a69fbd00c6aef0af319b6d1
b614319d
1 parent
0b050d81
Fix circle chart position
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
PNChart/PNCircleChart.m
PNChartDemo/Base.lproj/Main.storyboard
PNChart/PNCircleChart.m
View file @
b614319
...
...
@@ -33,7 +33,7 @@
CGFloat
endAngle
=
clockwise
?
-
90
.
01
f
:
270
.
01
f
;
_lineWidth
=
@8.0f
;
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
frame
.
size
.
width
/
2
,
self
.
frame
.
size
.
height
/
2
)
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
center
.
x
,
self
.
center
.
y
)
radius
:(
self
.
frame
.
size
.
height
*
0
.
5
)
-
[
_lineWidth
floatValue
]
startAngle:
DEGREES_TO_RADIANS
(
startAngle
)
endAngle:
DEGREES_TO_RADIANS
(
endAngle
)
...
...
PNChartDemo/Base.lproj/Main.storyboard
View file @
b614319
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
5056"
systemVersion=
"13C1021
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
initialViewController=
"9Rt-UT-IxH"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
6254"
systemVersion=
"14B25
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
initialViewController=
"9Rt-UT-IxH"
>
<dependencies>
<deployment
defaultVersion=
"1536"
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
3733
"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
6247
"
/>
</dependencies>
<scenes>
<!--
Chart View Controller -
PNChart-->
<!--PNChart-->
<scene
sceneID=
"lC9-iu-Smd"
>
<objects>
<viewController
id=
"Tha-Wr-sPW"
customClass=
"PCChartViewController"
sceneMemberID=
"viewController"
>
...
...
@@ -24,7 +24,7 @@
</objects>
<point
key=
"canvasLocation"
x=
"536"
y=
"31"
/>
</scene>
<!--
Charts Table View Controller -
PNChart-->
<!--PNChart-->
<scene
sceneID=
"pBo-qW-N8B"
>
<objects>
<tableViewController
id=
"cc5-BF-Ga2"
customClass=
"PCChartsTableViewController"
sceneMemberID=
"viewController"
>
...
...
Please
register
or
login
to post a comment