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
Gianmaria Dal Maistro
2015-08-20 14:14:41 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cb55ef6e35ae81074f63c5919d294458ca7aa11a
cb55ef6e
1 parent
d2167db5
added switch to show on demo the introduced new feature for multiple selection on pie chart
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
PNChartDemo/Base.lproj/Main.storyboard
PNChartDemo/PCChartViewController.h
PNChartDemo/PCChartViewController.m
PNChartDemo/Base.lproj/Main.storyboard
View file @
cb55ef6
This diff is collapsed. Click to expand it.
PNChartDemo/PCChartViewController.h
View file @
cb55ef6
...
...
@@ -25,12 +25,13 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
changeValueButton
;
@property
(
weak
,
nonatomic
)
IBOutlet
UISwitch
*
leftSwitch
;
@property
(
weak
,
nonatomic
)
IBOutlet
UISwitch
*
centerSwitch
;
@property
(
weak
,
nonatomic
)
IBOutlet
UISwitch
*
rightSwitch
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
leftLabel
;
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
rightLabel
;
-
(
IBAction
)
rightSwitchChanged
:(
id
)
sender
;
-
(
IBAction
)
leftSwitchChanged
:(
id
)
sender
;
-
(
IBAction
)
rightSwitchChanged
:(
id
)
sender
;
@end
...
...
PNChartDemo/PCChartViewController.m
View file @
cb55ef6
...
...
@@ -344,6 +344,15 @@
}
}
-
(
IBAction
)
centerSwitchChanged
:
(
id
)
sender
{
if
(
self
.
pieChart
)
{
[
self
.
pieChart
setEnableMultipleSelection
:
self
.
centerSwitch
.
on
];
[
self
.
pieChart
strokeChart
];
}
}
-
(
IBAction
)
leftSwitchChanged
:
(
id
)
sender
{
if
([
self
.
title
isEqualToString
:
@"Pie Chart"
]){
UISwitch
*
showRelative
=
(
UISwitch
*
)
sender
;
...
...
Please
register
or
login
to post a comment