Popups & Preloaders

Use the ISN_UIAlertController class o configure alerts and action sheets with the message that you want to display and the actions from which to choose. After configuring the alert controller with the actions and style you want, present it using the Present method. UIKit displays alerts and action sheets modally over your app's content. In addition to displaying a message to a user, you can associate actions with your alert controller to give the user a way to respond. For each action, you add using the addAction method, the alert controller configures a button with the action details. When the user taps that action, the alert controller executes the block you provided when creating the action object. 

The code listing below shows how to configure and present a simple alert message:

using SA.iOS.UIKit;
...
ISN_UIAlertController alert = new ISN_UIAlertController("My Alert", "This is an alert.", ISN_UIAlertControllerStyle.Alert);
ISN_UIAlertAction defaultAction = new ISN_UIAlertAction("Ok", ISN_UIAlertActionStyle.Default, () => {
    //Do something
});

alert.AddAction(defaultAction);
alert.Present();

Next snippet show's hot to make a simple dialog

using SA.iOS.UIKit;
...
ISN_UIAlertController alert = new ISN_UIAlertController("Hello", "Would you like to continue.", ISN_UIAlertControllerStyle.Alert);
ISN_UIAlertAction yesAction = new ISN_UIAlertAction("Yes", ISN_UIAlertActionStyle.Default, () => {
    //User said yes
});

//We can highlight button to show that 
//this option is preffered to be choosen
yesAction.MakePreffered();

ISN_UIAlertAction noAction = new ISN_UIAlertAction("No", ISN_UIAlertActionStyle.Default, () => {
    //User said no
});


alert.AddAction(yesAction);
alert.AddAction(noAction);
alert.Present();

Feel free to also use different actions styles from ISN_UIAlertActionStyle and alert styles ISN_UIAlertControllerStyle

If you are looking for popup similar to a picture below, take a look at Store Review Controller.

StoreReviewController

Preloader

There is a lot of situation during app execution logic when you want simply lock the screen with preloader, and have user wait until you finish some important operation. Like for example In-App transaction validations, or whatever else you have.

To lock the screen simply use:

using SA.iOS.UIKit;
...
ISN_Preloader.LockScreen();

And when you need to unlock the screen and hide the preloader:

using SA.iOS.UIKit;
...
ISN_Preloader.UnlockScreen();