Welcome to the documentation page for ABPickerDialog, a CocoaPods library that provides a customizable picker dialog for iOS apps. This page contains detailed information and instructions on how to use ABPickerDialog in your projects.


ABPickerDialog is a convenient and versatile solution for incorporating a picker dialog into your iOS app. It offers a wide range of customization options and provides a seamless user experience.


  • Fully customizable appearance and behavior of the picker dialog.
  • Support for both single and multiple selection modes.
  • Flexible integration with various data sources, including arrays and custom objects.
  • Auto-layout support for easy integration into different screen sizes and orientations.
  • Smooth animations and transitions for enhanced user experience.
  • Callback mechanism to handle user-selected values.
  • Can be easily localized for different languages.


To integrate ABPickerDialog into your Xcode project using CocoaPods, follow these steps:

  1. Add the following line to your Podfile:

    `pod 'ABPickerDialog'`
  2. Run the command `pod install`.
  3. Import the library in your Swift file:

    `import ABPickerDialog`

Alternatively, you can manually download the library and import the necessary files into your Xcode project.


ABPickerDialog provides an intuitive API for implementing the picker dialog in your app. To get started, follow these steps:

  1. Create an instance of ABPickerDialog:

    `let pickerDialog = ABPickerDialog()`
  2. Customize the appearance and behavior of the picker dialog as desired.
  3. Set the data source for the picker dialog:

    `pickerDialog.dataSource = yourDataSource`

  4. Implement the appropriate delegate methods to handle user interaction and selection:

    `pickerDialog.delegate = self`

  5. Display the picker dialog when required:

    `pickerDialog.show(in: self)`

Optionally, you can use the provided convenience methods and properties to further customize the picker dialog according to your application’s needs.


Here’s an example implementation of ABPickerDialog in a Swift project:

`import ABPickerDialog

class ViewController: UIViewController, ABPickerDialogDelegate {

    let pickerDialog = ABPickerDialog()
    let fruits = ["Apple", "Banana", "Orange", "Strawberry"]

    override func viewDidLoad() {

        pickerDialog.dataSource = fruits
        pickerDialog.delegate = self

    @IBAction func showPickerDialog() {
        pickerDialog.show(in: self)

    // MARK: ABPickerDialogDelegate

    func pickerDialog(_ pickerDialog: ABPickerDialog, didSelectItemAtIndex index: Int) {
        let selectedFruit = fruits[index]
        // Handle the selected fruit


ABPickerDialog simplifies the process of implementing a picker dialog in your iOS app. It offers extensive customization options and ensures a seamless user experience. Feel free to explore the documentation further and experiment with the library to suit your specific requirements.