iOS Tutorial

How To Create Different Type Button Programmatically In Swift

UIKit.UIButton class is used to create a button in the iOS swift app programmatically. When you use this class to create a button object, you should provide a type parameter to UIButton class’s initializer method to tell swift which kind of button that you want to create. We only create a default system button in

How To Create Different Type Button Programmatically In Swift Read More »

How To Create Multiple Button And Add Button Action Function Programmatically In iOS Swift

We have learned how to add the button to the iOS app and how to add a button click event process function in the article iOS Add Click Event To UIButton Swift Example. But in that article, we add a button from the Xcode UI component library by drag & drop, we add a button

How To Create Multiple Button And Add Button Action Function Programmatically In iOS Swift Read More »

How To Create, Align And Wrap Label Text Programmatically In Swift iOS App

UIKit.UILabel class is used to create a label in iOS swift source code programmatically. You can change label text, label text color, label background color, label border width, label border color by setting it’s properties. You can also change the label text alignment by change the UILabel object’s textAlignment property value t0 NSTextAlignment.left, NSTextAlignment.center or NSTextAlignment.right.

How To Create, Align And Wrap Label Text Programmatically In Swift iOS App Read More »

How To Connect Storyboard UI Component To ViewController Class Code

When we develop iOS app use Xcode, we design the app GUI ( graphical user interface ) in Main.storyboard file. And the swift source code is edited in ViewController.swift file. But how to use swift source code in ViewController.swift file to modify storyboard UI component’s attributes or process UI component’s action event? This article will

How To Connect Storyboard UI Component To ViewController Class Code Read More »