文章来源:淘论文网   发布者: 毕业设计   浏览量: 27



还可以点击去查询以下关键词:
[RATreeView]    [列定]    [制表]    [树状]    [RATreeView 列定制表树状图]   

项目介绍:

RATreeView (iOS 7.0+, tvOS 9.0+)

https://github.com/Augustyniak/RATreeView

IntroductioniOStvOS
   

RATreeView是一个类,开题报告,旨在提供简单愉快的方式在iOS和tvOS上使用树视图。 它作为UITableView的包装器,定义自己的委托和数据源方法,论文,使得使用树数据结构变得非常容易。

RATreeView是高度可定制的,并有很多功能。

Installation 安装方法CocoaPods

CocoaPods is the recommended way to add RATreeView to your project.

Add additional entry to your Podfile.

pod 'RATreeView', '~> 2.1.1'

Install Pod(s) running pod install command.

Include RATreeView using #import <RATreeView.h>.

Source files

Downloaded the latest version of the library using link.

Copy content of the downloaded (and unzipped) zip file into your project by dragging it into Project's navigator files structure.

Requirements 环境需求

Xcode 5

iOS 7 or newer/tvOS 9 or newer

Usage 使用方法

Check out the demo for example usage of library. Make sure you read the RATreeView documentation on Cocoa Docs.

Basics

Add following import in file of your project when you want to use RATreeView:

// In case you are using RATreeView with CocoaPods #import <RATreeView.h>// In case you are using RATreeView by simply copying // source files of the RATreeView into your project #import 'RATreeView.h'

Simplest way to initialize and configure RATreeView:

RATreeView *treeView = [[RATreeView alloc] initWithFrame:self.view.bounds]; treeView.delegate = self; treeView.dataSource = self; [self.view addSubview:treeView]; [treeView reloadData];

Implement required methods of the RATreeView's data source:

- (NSInteger)treeView:(RATreeView *)treeView numberOfChildrenOfItem:(id)item { return item ? 3 : 0; }

- (UITableViewCell *)treeView:(RATreeView *)treeView cellForItem:(id)item treeNodeInfo:(RATreeNodeInfo *)treeNodeInfo { // create and configure cell for *item* return cell }- (id)treeView:(RATreeView *)treeView child:(NSInteger)index ofItem:(id)item { return @(index); }Adding Pull to Refresh control

Adding pull to refresh gesture is really easy using RATreeView and standard UIRefreshControl control.

UIRefreshControl *refreshControl = [UIRefreshControl new]; [refreshControl addTarget:self action:@selector(refreshControlChanged:) forControlEvents:UIControlEventValueChanged]; [treeView.scrollView addSubview:refreshControl];Documentation 参考文档

CocoaPods.

Author

RATreeView was created by Rafał Augustyniak. You can find me on twitter (@RaAugustyniak).


这里还有:


还可以点击去查询:
[RATreeView]    [列定]    [制表]    [树状]    [RATreeView 列定制表树状图]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/8557.docx
  • 上一篇:sealt定制alk-ios
  • 下一篇:PickerController 自定义定制选择器,支持地址选择