-
Notifications
You must be signed in to change notification settings - Fork 1
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:
Also, don't forget to check if you using iOS platform as current build.
Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Getting Started
- Authentication
- Game Center UI
- Leaderboards
- Default Leaderboard
- Achievements
- Saving A Game
- Access Point
- iTunes Connect Setup
- StoreKit Initialization
- Purchase flow
- Receipt Validation
- Store Review Controller
- Storefront API
- Subscription Offers