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

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.

主站蜘蛛池模板: 湘乡市| 建平县| 通海县| 泰安市| 长丰县| 汽车| 元阳县| 崇仁县| 台中市| 仁怀市| 临城县| 晴隆县| 绥滨县| 商城县| 辛集市| 民乐县| 绍兴县| 重庆市| 建德市| 晋宁县| 丹东市| 垦利县| 拉萨市| 堆龙德庆县| 兴山县| 施秉县| 海阳市| 鲁山县| 承德市| 区。| 凯里市| 沅陵县| 云龙县| 西林县| 南阳市| 高雄县| 鄂托克旗| 时尚| 江孜县| 中江县| 方城县|