单军华
2017-03-08 5fda93834efe5d08227712c07c9a580e8f123f01
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//  PCChartsTableViewController.m
//  PNChartDemo
//
//  Created by kevinzhow on 13-12-1.
//  Copyright (c) 2013年 kevinzhow. All rights reserved.
//
 
#import "PCChartsTableViewController.h"
 
@implementation PCChartsTableViewController
 
// In a story board-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
 
    UIViewController * viewController = [segue destinationViewController];
 
    if ([segue.identifier isEqualToString:@"lineChart"]) {
 
        //Add line chart
 
        viewController.title = @"Line Chart";
 
    } else if ([segue.identifier isEqualToString:@"barChart"])
    {
        //Add bar chart
 
        viewController.title = @"Bar Chart";
    } else if ([segue.identifier isEqualToString:@"circleChart"])
    {
        //Add circle chart
 
        viewController.title = @"Circle Chart";
 
    } else if ([segue.identifier isEqualToString:@"pieChart"])
    {
        //Add pie chart
 
        viewController.title = @"Pie Chart";
    } else if ([segue.identifier isEqualToString:@"scatterChart"])
    {
        //Add scatter chart
        
        viewController.title = @"Scatter Chart";
    }else if ([segue.identifier isEqualToString:@"radarChart"])
    {
        //Add radar chart
        
        viewController.title = @"Radar Chart";
    }
}
 
@end