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

【代码笔记】竖状图

一,效果图。

【代码笔记】竖状图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/95759.html
PB优惠活动:https://www.goluckyvip.com/tag/9576.html
德国换标海外仓:https://www.goluckyvip.com/tag/95761.html
谷仓德国海外仓:https://www.goluckyvip.com/tag/95764.html
德国对于海外仓:https://www.goluckyvip.com/tag/95768.html
保税仓和海外仓的区别:https://www.goluckyvip.com/tag/95772.html
最新消息:推进涉“字节剥离TikTok”新法案将再投票:https://www.goluckyvip.com/news/220214.html
家禽喂食器专利,案件号:24-cv-2773,DRAFT TOP 开瓶器,案件号:24-cv-1889,24-cv-2620等:https://www.kjdsnews.com/a/1842233.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流