CardStyleTableView
An extension of UITableView and UITableViewCell which displays a card style view in grouped tableView, similar to the system's tableView before iOS 7.
How To Get Started
Carthage
Specify "CardStyleTableView" in your Cartfile
:
github "teambition/CardStyleTableView"
CocoaPods (version equal or above 0.1.4)
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate features into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'TBCardStyleTableView, '~> 0.1.4'
Then, run the following command:
$ pod install
Usage
Import CardStyleTableView
import CardStyleTableView
AppDelegate
Setup in your func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
CardStyle.setup()
return true
}
Assign delegate
tableView.cardStyleSource = self
CardStyleTableViewStyleSource
func roundingCornersForCard(inSection section: Int) -> UIRectCorner {
// set rounding corners of this section, default is .allCorners
}
func leftPaddingForCardStyleTableView() -> CGFloat {
// leftPadding
}
func rightPaddingForCardStyleTableView() -> CGFloat {
// rightPadding
}
func cornerRadiusForCardStyleTableView() -> CGFloat {
// cornerRadius
}
Minimum Requirement
iOS 8.0
Release Notes
License
CardStyleTableView is released under the MIT license. See LICENSE for details.
More Info
Have a question? Please open an issue!