CountryCodePlugin 0.0.9

CountryCodePlugin 0.0.9

Michael 维护。



  • 作者
  • Michael

CountryCodePlugin

CocoaPods Compatible Platform License

示例

Imgur

要求

  • iOS 10.0+
  • Xcode 11.0+
  • Swift 5.0+

安装

CocoaPods

将以下内容添加到 Podfile 中,然后更新依赖项

pod 'CountryCodePlugin'

使用说明

快速开始

import CountryCodePlugin

let controller = CountryCodeTableViewController.instantiate()
controller.modalPresentationStyle = .fullScreen
controller.delegate = self
controller.language = .TW
        
present(controller, animated: true, completion: nil)

// Implements CountryCodeDeledate
// Callback after user selection
func countryCodeDidSelect(code: String, name: String) {
    
}

// You can custom the layout of cell (Optional)
func makeCountryCodeCell(cell: UITableViewCell, code: String, name: String) -> UITableViewCell {
    return cell
}

支持语言

  • 英文
  • 繁体中文

功能

  • 自定义单元格
  • 文本搜索
  • 国旗图片
  • 单元格分组