Skip to content

☃️ A TableBoard that row can be moved everywhere just like Trello

License

Notifications You must be signed in to change notification settings

StormXX/STTableBoard

 
 

Repository files navigation

STTableBoard

☃️ A TableBoard that row can be moved everywhere just like Trello (for iPhone and iPad) Teambition is using the STTableBoard.

GIF

image

Usage

  1. Init a STTableBoard with let table = STTableBoard(localizedStrings: yourLocalizedString)
  2. RegisterClasses use registerClasses(_ classAndIdentifier: [(AnyClass,String)])
  3. Set the delegate and dataSource to the UIViewController
  4. Add it to SuperViewController
self.addChildViewController(tableBoard)
view.addSubview(tableBoard.view)
tableBoard.didMove(toParentViewController: self)
  1. (Download the demo and excute carthage update to run it

The TableBoard has two delagate: STTableBoardDelegate and STTableBoardDataSource, it's just like the delegate of UITableView

Localization

You can do your localization for the tableboard. Example:

var localizedString: [String: String] = [
        "STTableBoard.AddRow": LocalizedString("AddRow"),
        "STTableBoard.AddBoard": LocalizedString("AddBoard"),
        "STTableBoard.BoardMenuTextViewController.Title": LocalizedString("BoardMenuTextViewController.Title"),
        "STTableBoard.EditBoardNameCell.Title": LocalizedString("EditBoardNameCell.Title"),
        "STTableBoard.DeleteBoardCell.Title": LocalizedString("DeleteBoardCell.Title"),
        "STTableBoard.DeleteBoard.Alert.Message": LocalizedString("DeleteBoard.Alert.Message"),
        "STTableBoard.Delete": LocalizedString("Delete"),
        "STTableBoard.Cancel": LocalizedString("Cancel"),
        "STTableBoard.OK": LocalizedString("OK"),
        "STTableBoard.Create": LocalizedString("Create"),
        "STTableBoard.RefreshFooter.text": LocalizedString("RefreshFooter.text")
    ]

Minimum Requirement

iOS 8.0

License

STTableBoard is released under the CC license. See Creative Commons for details.

More Info

Have a question? Please open an issue!

About

☃️ A TableBoard that row can be moved everywhere just like Trello

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.7%
  • Objective-C 0.3%