官术网_书友最值得收藏!

Introduction

An application's User Interface (UI) is essential for providing the user with an easy way of communicating with a device, be it a computer, a mobile phone, or a tablet. On a mobile device, the user interface is not only essential but the only way to interact with the user. Developers have to cope with various limitations and restrictions when developing applications for mobile devices. The processing power of mobile devices does not match that of desktop CPUs, and the screens are smaller, making the process of choosing what sort of information will be displayed each time somewhat more difficult.

In this chapter, we will discuss the key components of an iOS application's UI. We will see how to use and customize these components to create rich application user interfaces and discuss the similarities and differences they have with their desktop equivalents. The following is a list of these components:

  • UIView: This is a customizable container that is the base object of most iOS user interface controls
  • UIButton: This is the equivalent of a Button in the .NET world
  • UILabel: This is the equivalent of a Label in the .NET world
  • UIImageView: This is a view that allows us to display and create basic animations with images
  • UITextView: This is a view that allows us to display editable text
  • UITextField: This is similar to .NET's TextBox control
  • UIProgressView: This displays the known length progress
  • UIScrollView: This provides the ability to display scrollable content
  • UIPageControl: This provides navigation functionality to the content that is divided into different pages or screens
  • UIAlertView: This is the default iOS control for displaying a message box to the user

We will also talk about how to programmatically create instances of these components and how to style and use them efficiently.

主站蜘蛛池模板: 秦安县| 宝山区| 钟祥市| 横峰县| 平陆县| 贡觉县| 高邮市| 腾冲县| 开化县| 汶上县| 云安县| 三江| 南溪县| 阳泉市| 海宁市| 东光县| 哈尔滨市| 元阳县| 通州区| 崇明县| 彰武县| 商都县| 阜平县| 鹿泉市| 芮城县| 南开区| 沈阳市| 鸡泽县| 苏尼特右旗| 永福县| 肃北| 酒泉市| 巴青县| 平邑县| 道孚县| 革吉县| 双峰县| 将乐县| 寻甸| 五指山市| 哈尔滨市|