Skip to content

Wheel Picker Dialog

levching edited this page Apr 15, 2020 · 4 revisions

The ISN_UIWheelPickerController is a simple dialog containing native UIPickerView for iOS. This component allows your app user to pick any data from wheel picker that you want.

using SA.iOS.UIKit;

First al all you need to set data for our picker and then create a new instance of it:

var values = new List{"Test 1", "Test 2", "Test 3"};
ISN_UIWheelPickerController pickerController = new ISN_UIWheelPickerController(values);

Then just call Show() to show your picker:

pickerController.Show((pickerResult) =>
{
    UM_WheelPickerResult result;
    if(pickerResult.IsSucceeded) 
    {       
        var pickerValue = pickerResult.Value;
        result = new UM_WheelPickerResult(pickerValue);
    } 
    else
    {
        result = new UM_WheelPickerResult(pickerResult.Error);
    }
});

It will be looking like this:

WheelPickerDialog

Also, don't forget to check if you using iOS platform as current build.

About

Foundation

AV Foundation

App Tracking Transparency

Game Kit

Store Kit

UI Kit

Social

Replay Kit

Contacts

AVKit

Photos

App Delegate

User Notifications

MediaPlayer

Core Location

AdSupport

EventKit

CloudKit

Authentication Services

XCode

Knowledge Base

Clone this wiki locally