TBBStockView icon indicating copy to clipboard operation
TBBStockView copied to clipboard

iOS 股票走势图(分时图,K线图)

TBBStockView

iOS 股票走势图(分时图,K线图)--- 在绘制虚实线,走势图背景时使用了更简洁的方法----共同学习,欢迎提出宝贵的意见和更好的方法

License MIT CocoaPods CocoaPods Support

image

Installation

CocoaPods

  1. Add pod "TBBStockView" to your Podfile.
  2. Run pod install or pod update.
  3. Import <TBBStockView.h>.

Manually

  1. Download all the files in the TBBStockView subdirectory.
  2. Add the source files to your Xcode project.
  3. Import TBBStockView.h.

How to use

  1. Import TBBStockView.h.
 TBBTimeLineView *lineView = [[TBBTimeLineView alloc]initWithFrame:CGRectMake(0, 114.0f, KScreenWidth, 300.f) withDataArr:self.dataArr];
    self.lineView = lineView;
    [self.view addSubview:self.lineView];
  1. You should sure that the self.dataArr input must match the model,Specific please see the ViewController.m