星空网 > 软件开发 > 操作系统

【代码笔记】竖状图

一,效果图。

【代码笔记】竖状图images/loading.gif' data-original="http://images2015.cnblogs.com/blog/337518/201510/337518-20151020144748817-1111348821.jpg" width="218" height="400" />

二,工程图。

【代码笔记】竖状图

三,代码。

RootViewController.h

#import <UIKit/UIKit.h>@interface RootViewController : UIViewController@end

 

RootViewController.m

【代码笔记】竖状图
#import "RootViewController.h"//加入头文件#import "NTChartView.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];  if (self) {    // Custom initialization  }  return self;}- (void)viewDidLoad{  [super viewDidLoad];  // Do any additional setup after loading the view.      self.title=@"竖状图";      NTChartView *v = [[NTChartView alloc] initWithFrame:CGRectMake(10, 100, 300, 300)];    NSArray *g = [NSArray arrayWithObject:[NSMutableArray arrayWithObjects:                      [NSNumber numberWithFloat:18],                      [NSNumber numberWithFloat:30],                      [NSNumber numberWithFloat:16.5],                      [NSNumber numberWithFloat:55],                      [NSNumber numberWithFloat:40],nil]];  v.groupData = g;    [self.view addSubview:v];  }
【代码笔记】竖状图

 




原标题:【代码笔记】竖状图

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

到菲律宾国际货运:https://www.goluckyvip.com/tag/96623.html
发到菲律宾快递:https://www.goluckyvip.com/tag/96624.html
菲律宾最快的快递:https://www.goluckyvip.com/tag/96625.html
快递到菲律宾马尼拉:https://www.goluckyvip.com/tag/96626.html
义乌到菲律宾货运:https://www.goluckyvip.com/tag/96627.html
菲律宾托运:https://www.goluckyvip.com/tag/96628.html
青岛崂山旅游攻略自驾游(详细介绍崂山自驾游路线和景点):https://www.vstour.cn/a/404242.html
海南旅游景点的路线 海南旅游景点大全攻略自驾游:https://www.vstour.cn/a/404243.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流