YouTip LogoYouTip

Ios Ui

## What Are UI Elements? UI elements are any visible elements in our application. Some of them respond to user interactions, such as buttons and text fields; others display rich content, such as images and labels. * * * ## How to Add UI Elements? UI elements can be added either programmatically or with the help of Interface Builder. We may use either approach as needed. * * * ## Our Focus We will focus on adding UI elements programmatically. A simpler and more direct method is to drag and drop UI elements using Interface Builder. * * * ## Method Below, we explain several UI elements by creating a simple iOS application. #### Steps 1. As in the first iOS program, create a View-based application. 2. Update only the ViewController.h and ViewController.m files. 3. Then add methods to the ViewController.m file to create UI elements. 4. Call these methods inside the viewDidLoad method. 5. Important code lines have been annotated in the code with comments placed above each line. * * * ## List of User Interface Elements The following explains specific UI elements and their related functionalities: | No. | Specific UI Element or Function | | --- | --- | | 1 | (#) UI element used by applications to obtain user input | | 2 | [Input Types – TextFields](#) Users can assign keyboard input attributes using UITextField | | 3 | (#) Used to handle user actions | | 4 | (#) Used to display static content | | 5 | (#) Controls what is displayed in the current view | | 6 | (#) Displays key device information | | 7 | (#) Contains a view controller that can be inferred and provides navigation buttons for popping navigation controllers | | 8 | (#) Generally used to switch between subtasks, views, or models within the same view | | 9 | (#) Used to display a simple sequence of images | | 10 | (h
← Http TutorialIos Delegates β†’