Programmatically creating UIButton,UILabel,UITextField Using Swift

UIButton UIButton is the simplest UI component in iOS was the first component which I learnt in objective C. Here is the code that created the UIButton dynamically in swift – apple’s new programming language. You can also customize the button and play with it. 123456let dunamicButton = UIButton.buttonWithType(UIButtonType.System) as UIButton dunamicButton.backgroundColor = UIColor.greenColor() dunamicButton.setTitle("Button", […]

Continue reading