dpt

DPTransparentEdgesTableView

Showing:

Popularity

Downloads/wk

0

GitHub Stars

40

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

DPTransparentEdgesTableView (Swift and Objective-C implementation)

Table and scroll view with transparent top and bottom edges. Written in Objective-C and Swift

BackgroundImage

###Easy to use

Objectve-C

// Create instance of DPTransparentEdgesTableView or DPTransparentEdgesScrollView
DPTransparentEdgesTableView *tableView = [[DPTransparentEdgesTableView alloc] initWithFrame:CGRectMake(0, 20, self.view.frame.size.width, self.view.frame.size.height - 20) style:UITableViewStyleGrouped];

// Set factor that describe length of the gradient
// length = viewHeight * gradientFactor
tableView.gradientLengthFactor = 0.3;

// Start use table
tableView.delegate = self;
tableView.dataSource = self;
[self.view addSubview:tableView];

Swift


// Create instance of DPTransparentEdgesTableView or DPTransparentEdgesScrollView
let tableView = DPTransparentEdgesTableView(frame: CGRectMake(0, 20, view.frame.size.width, view.frame.size.height - 20))

// Set factor that describe length of the gradient
// length = viewHeight * gradientFactor
tableView.gradientLengthFactor = 0.3

// Start use table
tableView.delegate = self
tableView.dataSource = self
view.addSubview(tableView)

Installation

DPTransparentEdgesTableView is available through CocoaPods.

To install add the following line to your Podfile:

pod 'DPTransparentEdgesTableView'

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100