Unit 3: UIKit Controls - Subjective Questions

INT372 — Iphone Application Programming • Practice Questions with Detailed Answers

20 questions

1

Define UIButton and explain how the target-action mechanism is used to handle a button tap in an iOS application.

2

Explain the purpose of UITextView and describe how the keyboard can be dismissed after multiline text entry.

3

Describe UITextField and explain how its input behavior and appearance can be customized.

4

Distinguish between UITextField and UITextView with suitable use cases.

5

What is UISwitch? Explain how to configure it and respond to changes in its state.

6

Explain the role of UIImageView and discuss the different content modes used to display an image.

7

Design a small user profile application using UIButton, UITextField, UITextView, UISwitch, and UIImageView. Explain the implementation and validation process.

8

Explain the concept of views in UIKit, including view hierarchy, frames, bounds, and Auto Layout.

9

Describe the architecture and implementation of a multi-view iOS application. What role does each view controller play?

10

Define a segue and explain how it is created, triggered, and prepared in a storyboard-based iOS application.

11

Explain how another view controller can be called using a UINavigationController. Distinguish between pushing and presenting a controller.

12

Explain different techniques for passing and receiving data between view controllers, including forward and backward data transfer.

13

What is UISegmentedControl? Explain how it can be used to switch between related options or views.

14

Describe UISlider and show how its value can be converted into a percentage and displayed to the user.

15

Explain UIAlertView and describe the recommended modern method for displaying an alert in iOS.

16

What is UIActionSheet? Explain its purpose and show how the same behavior is implemented using modern UIKit.

17

Compare an alert view and an action sheet with respect to purpose, presentation, and appropriate use.

18

Explain the purpose and operation of UIProgressView. How can progress be updated and animated?

19

Explain comprehensive keyboard handling in a form-based application, including dismissal, Return-key processing, and prevention of keyboard overlap.

20

Design a multi-view feedback application that uses UIKit controls, navigation, data passing, alerts, action sheets, and a progress view. Explain the complete flow.