Simple setting UI based on UIKit TableView
Use CocoaPods 0.36+, which adds support for Swift and embedded frameworks. You can install it with the following command:
$ gem install cocoapods
To integrate ZISetting into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'ZISetting'
Simple implementation
entries = [[
.CellType: UITableViewCellStyle.subtitle,
.Title: "Sampel Setting 1",
.AccessoryType: UITableViewCellAccessoryType.disclosureIndicator,
.Image: "ic_vocher",
.Subtitle: "Sub Setting 1",
.CellAction:{ () in
// event when clicked Cell
},
.AccessoryAction: { () in
// event when clicked Accessory
},
]]