Tutorial by Examples

For Alerts since iOS 8, you would use a UIAlertController but for versions before, you would have used a UIAlertView, which is now deprecated. 8.0 var alert = UIAlertController.Create(title, message, UIAlertControllerStyle.Alert); alert.AddAction(UIAlertAction.Create(otherTitle, UIAlertActionStyl...
The following code is for iOS 8 and lower for creating a login alert. // Create the UIAlertView var loginAlertView = new UIAlertView(title, message, null, cancelTitle, okTitle); // Setting the AlertViewStyle to UIAlertViewStyle.LoginAndPasswordInput loginAlertView.AlertViewStyle = UIAlertViewS...
The UIAlertController available since iOS8 allows you to use the same alert object for either Action sheets or more classic alerts. The only difference is the UIAlertControllerStyle passed as a parameter when creating. This line changes from an AlertView to an ActionSheet, compared to some other ex...
It was common practice to use NSRunLoop to show modal UIAlertView to block code execution until user input is processed in iOS; until Apple released the iOS7, it broke few existing apps. Fortunately, there is a better way of implementing it with C#’s async/await. Here’s the new code taking advantag...

Page 1 of 1