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:14:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9a31f5309156e1b7360e25dbfb216343f5081b98
9a31f530
1 parent
b614319d
Fix pie chart position
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
PNChartDemo/Base.lproj/Main.storyboard
PNChartDemo/PCChartsTableViewController.m
PNChartDemo/Base.lproj/Main.storyboard
View file @
9a31f53
...
...
@@ -16,7 +16,19 @@
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"PPb-b8-nBo"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"568"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"L3F-13-Wf5"
>
<rect
key=
"frame"
x=
"113"
y=
"364"
width=
"95"
height=
"30"
/>
<state
key=
"normal"
title=
"Change Value"
>
<color
key=
"titleShadowColor"
white=
"0.5"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstItem=
"L3F-13-Wf5"
firstAttribute=
"top"
secondItem=
"znr-YO-4a4"
secondAttribute=
"bottom"
constant=
"300"
id=
"ewm-kv-p8k"
/>
<constraint
firstAttribute=
"centerX"
secondItem=
"L3F-13-Wf5"
secondAttribute=
"centerX"
id=
"zXw-WV-mro"
/>
</constraints>
</view>
<navigationItem
key=
"navigationItem"
title=
"PNChart"
id=
"Ukg-Sg-E2z"
/>
</viewController>
...
...
PNChartDemo/PCChartsTableViewController.m
View file @
9a31f53
...
...
@@ -136,9 +136,9 @@
[
PNPieChartDataItem
dataItemWithValue
:
40
color
:
PNDeepGreen
description
:
@"GOOG I/O"
],
];
PNPieChart
*
pieChart
=
[[
PNPieChart
alloc
]
initWithFrame
:
CGRectMake
(
40
.
0
,
155
.
0
,
240
.
0
,
24
0
.
0
)
items
:
items
];
PNPieChart
*
pieChart
=
[[
PNPieChart
alloc
]
initWithFrame
:
CGRectMake
(
SCREEN_WIDTH
/
2
.
0
-
100
,
135
,
200
.
0
,
20
0
.
0
)
items
:
items
];
pieChart
.
descriptionTextColor
=
[
UIColor
whiteColor
];
pieChart
.
descriptionTextFont
=
[
UIFont
fontWithName
:
@"Avenir-Medium"
size
:
1
4
.
0
];
pieChart
.
descriptionTextFont
=
[
UIFont
fontWithName
:
@"Avenir-Medium"
size
:
1
1
.
0
];
pieChart
.
descriptionTextShadowColor
=
[
UIColor
clearColor
];
[
pieChart
strokeChart
];
...
...
Please
register
or
login
to post a comment