iOS Tutorial

How To Rename IBOutlet Variable Or IBAction Function Without Lose Connection In Swift

When I develop the iOS app user interface, I add one button and one activity indicator in the main storyboard file. Because I want to write swift source code to manage the button and the activity indicator, so I press the Control key and Drag & Drop the button and the activity indicator from the

How To Rename IBOutlet Variable Or IBAction Function Without Lose Connection In Swift Read More »

How To Add Multiple Buttons And Editable Text Field In iOS Alert Dialog Use Swift

This article will tell you how to add one button, two buttons, three buttons, and the editable text fields in an iOS alert dialog in swift. The alert button style type can be UIAlertAction.Style.default, UIAlertAction.Style.cancel and UIAlertAction.Style.destructive. Now let us look at the demo picture below.

How To Add Multiple Buttons And Editable Text Field In iOS Alert Dialog Use Swift Read More »

How To Fix Swift Error Unable To Activate Constraint With Anchors Because They Have No Common Ancestor & LayoutConstraints Unable To Simultaneously Satisfy Constraints

When I develop an iOS app, I add a UITextField in the app UI programmatically. And I also add some constraints to the UITextField object in swift source code to make it auto layout. But when I run the app, it throws an exception with the error message ‘NSGenericException’, reason: ‘Unable to activate constraint with

How To Fix Swift Error Unable To Activate Constraint With Anchors Because They Have No Common Ancestor & LayoutConstraints Unable To Simultaneously Satisfy Constraints Read More »