IOS Uikit Framework

Source: Internet
Author: User
Tags uicontrol uikit

1. Introduction:

The UIKITK Framework provides a series of class (classes) to establish and manage the user interface (UI) interfaces, application objects, event controls, drawing models, Windows, views, and interfaces for controlling the touch screen of iphone OS applications. (PS1: An API library that can be considered a manipulation interface.) (The Ps2:uikit framework is used on the iOS platform that corresponds to the application Kit on Mac OS X, which is the sister framework, the role and the purpose of not much difference (I did not say the process of achieving the same), the table is confused)

2. Entrance to the framework:

#import <uikit/uikit.h>

When this header file is introduced, any class declared in the Uikit can be used in the program. (PS: Of course to link this framework to your application).

3. A simple description of each class in the framework (original link: http://www.jianshu.com/p/ae3ab9fdc23c)

1.UIAcceleration:

An instance of the Uiacceleration class called the acceleration event is used to represent the instantaneous three-dimensional acceleration data. To receive the gravitational acceleration, register an application application as a delegate object for a shared Uiaccelerater object (refer to the Uiacceleromete Class).

2. Uiaccelerater:

The Uiaccelerater class allows your registers to receive acceleration-related data from onboard hardware. When the device moves, its hardware can report linear acceleration changes along the main line in three-dimensional space. You can use this data to detect the current direction of the device and the instantaneous change in that direction. You can use this instantaneous change to enter into a game or launch some actions in the application.

3. Uiaccessibilityelement

The Uiaccessibilityelement class encapsulates project information that is visible to some special people and is inaccessible by default. For example, an icon or text image is not automatically accessed because it does not inherit the UIView (or Uicontrol). A project that contains the same non-view, creating an instance to represent the uiaccessibilityelement that each project needs to access.

4.UIBarItem

Uibaritem is an abstract superclass used to add a column to an item at the bottom of the screen. The entry with the bar is similar to the way a button is. They have titles, pictures, actions and goals. You can enable and disable a column entry in your project.

(1) Uibarbuttonitem

A bar button item is a dedicated button placed on a Uitoolbar or Uinavigation object. It inherits the behavior of the basic button from its abstract parent class, Uibaritem. Uibarbuttonitem defines additional initialization methods and properties, using toolbars and navigation bars.

(2) Uitabbaritem

The Uitabbaritem class implements a project with a tab bar, an instance of the Uitabbar class. A tab bar works strictly in radio mode, where one item is selected at the time, click the tab bar item to toggle the tab bar above. You can also specify information on items on the tab bar, such as adding additional visual badge values, using the item's badge on the phone application to display the number of new messages. This class also provides some items that the system creates by default.

5.UIBezierPath

Uibezierpath class, you can define a path that consists of line and curve segments, and present your custom view path. You can use this class to initially just specify the geometry for your path. Paths can define simple shapes, such as rectangles, ellipses, and arcs, or they can define

Mixed polygons, using a mixture of straight lines and curved segments. After you define the shape, you can use other methods of this class to render the path to the current drawing context.

6.UIColor

A Uicolor object represents the color, sometimes opaque (alpha value). You can use the Uicolor object to store color data, and in the process of painting, you can use them to set the current fill and stroke colors.

7.UIDecive

The Uidevice class provides a single instance representing the current device. From this instance, you can obtain information about the device's unique ID, assigned name, device model, and operating system name and version. You can also use the Uidevice instance to detect the characteristics of the device, such as changes in the physical direction. Use the direction attribute to get the current direction, or register uideviceorientationdidchangenotification notification to receive a change notification. Before using these techniques to obtain location data, you must make the data pass, using the Begingeneratingdeviceorientationnotifications method. When you no longer need to track the direction of the device, call the Endgeneratingdeviceorientationnotifications method to disable notification of delivery:

8.UIDocumentInteractionController

A file interaction controller together with the delegate object, which provides support for application management of user interaction with files in the local system. For example, an e-mail program might use this class to allow users to preview attachments and open them in other applications. Using this class, currently preview the appropriate user interface, open, copy or print the specified file.

9.UIEvent

An Uievent object (or simply, an event object) represents an event in iOS. There are generally three types of events: Touch events, motion events, and remotely controlled events. Remotely controlled events enable a responder object to receive commands from external attachments or headphones so that it can manage the management of audio and video, for example, playing a video or skipping to the next track.

10.UIFont

The Uifont class provides an interface for getting and setting font information. The class provides access to font characteristics and also provides access to the font information system that is used in the layout process. They can use the Font object by accepting them as parameters for the method.

11.UIGestureRecognizer

Uigesturerecognizer is an abstract base class for a specific gesture recognition class. A gesture recognition object (or simply, a gesture recognition) separates the logic that acknowledges this perception of posture and action. When one of these objects admits a common gesture, or, in some cases, a change of posture, it sends an action message, each of the specified eyes

Objective. The following stomach-specific subclasses:

(1) UITapGestureRecognizer

Single or multiple plugs. The specified number of fingers must be recognized by the gesture, mining to view the specified number of times.

(2) Uipinchgesturerecognizer

It looks like a pinch gesture that involves two contacts. When the user will be two fingers, the traditional meaning to each other is narrowed, and when the user moves two fingers away from each other, the traditional meaning zooms.

(3) Uirotationgesturerecognizer

It looks like a rotation involves two touch gestures. When the user moves the circumference of the opposite side of the finger, the basic point of view should be rotated in the corresponding direction and speed.

(4) Uiswipegesturerecognizer

Gestures that look like swiping in one or more directions. The attack is a stand-alone gesture, so the associated action messages are sent only once per gesture.

(5) Uipangesturerecognizer

Gestures that appear to pan (drag). Users must press to view the previous or more fingers while they pan. The client that implements this gesture recognition action method can demand the speed of its current translation and gestures.

(6) Uilongpressgesturerecognizer

Looks like a long press gesture. The user must press one or more finger action messages to transmit at least the specified period. In addition, the fingers may have to admit that the gesture moves only the specified distance, and if they exceed this limit the gesture fails.

12.UIImage

A UIImage object is a high-level way to display the image data. You can create images from a file, from an object in a quartz image, or from the original image data you receive. The UIImage class also provides several options for drawing images into the context of the current drawing, using different blending modes and opacity values.

13.UILocalizedIndexedCollation

The Uilocalizedindexedcollation class facilitates the organization, collation, and localization of data for partially indexed charts. Table view of the data source, and then use the sort object to provide a table view of the Header and section index headings of the input section.

14.UILocalNotification

An Uilocalnotification instance indicates that an application can submit a notification to its users at a specific date and time schedule. The operating system is responsible for providing notifications at the appropriate time; Although local notifications are similar, they are used to display alerts, play sound and badges for application icons, remote notifications, which are composed and locally delivered, and do not need to be connected to a remote server.

15.UIMenuController

He's single. The Uimenucontroller example introduces the menu interface of Cut, copy, paste, select, select, and delete commands.

16.UINavigationItem

The Uinavigationitem class encapsulates information about a push-navigation item on the stack of a Uinavigationbar object. A navigation bar is the content used to control the navigation hierarchy. A uinavigationitem specifies what is displayed on the navigation bar when it is the top item and also represents how it is when the items are later.

17.UINib

An instance of the Uinib class as an object wrapper or container, Interfacebuilder the nib file. A Uinib object caches the contents of a nib file in memory, quasi-

Solutions and instances. When your application needs to instantiate the contents of the nib file, it can do so without having to load the data from the nib file, thereby improving performance. The Uinib object can automatically release the cached tip data for free within your application under low memory conditions, reloading the data the next time your application instance nib. When your application should use the Uinib object, it needs to repeatedly instantiate the same nib data. For example, if your table view uses the nib File instance table view cell, the tip of the Uinib object in the cache can provide a significant performance improvement.

18.UIPasteboard

The Uipasteboard class allows applications to share data for system-wide or application-specific stickers that are used within an application or with other applications.

19.UIPopoverController

The Uipopovercontroller class is used to manage the rendering of content in PopOver. You use Popovers to temporarily present the current information temporarily and in a way that does not exceed the entire screen like a modal view. PopOver content is the layering of your existing content on a particular type of window. PopOver is still visible until the user taps outside the PopOver window or you explicitly dismiss it. The PopOver controller is limited to the use of devices such as ipads. Try to create a new one when the other device results are unexpected.

20.UIPrintFormatter

Uiprintformatter when printing a formatted abstract base class: demonstrates that traditional printable content objects can span page boundaries. Due to the printing format, the print system can automatically print the type associated with the printed content. The following is a subclass of Uiprintformatter:

(1) Uisimpletextprintformatter

An instance of the Uisimpletextprintformatter class is laid out to print plain text, possibly multiple pages. The class allows you to specify the pattern properties of the global font, color, snaplines, and newline characters of the printed text.

(2) Uimarkuptextprintformatter

An instance of the Uimarkuptextprintformatter class shows the HTML markup text for a multi-page print job.

(3) Uiviewprintformatter

An instance of the Uiviewprintformatter class that outlines what the view is drawn for printing. The contents of a view can span multiple pages.

21.UIPrintInfo

A Uiprintinfo object encapsulates information about the print job, including printer identification, job name, output type (photo, normal, grayscale), Orientation (portrait or landscape), and any selected duplex mode. This information is used when the print system prints.

22.UIPrintInteractionController

Uiprintinteractioncontroller class of shared instances, presents a printed user interface and manages files, images and other printable content in iOS print. Uiprintinteractioncontroller is the iOS central printing class. Its shared instance represents a print job. print jobs, including their printing-related information and options, such as output type, job name, paper size and orientation, to print content.

23.UIPrintPageRenderer

A Uiprintpagerenderer object draws the contents of the page to be printed with or without printing formatting. A page rendering is an instance of the Uiprintpagerenderer custom subclass. When you compose a print job that uses a Uiprintinteractioncontroller shared instance, the page that you specify is rendered to the Printpagerenderer property of the instance.

24.UIPrintPaper

An instance of the Uiprintpaper class encapsulates a rectangle that uses the paper size, the print job, and the contents in which the content can be printed.

25.UIResponder

The Uiresponder class defines an interface for dealing with and handling the object of an event. It is a superclass of Uiapplication,uiview and its subclasses (including UIWindow). Instances of these classes are sometimes referred to as responder objects or simply answered.

(1) uiapplication

The UIApplication class provides a centralized point of control and coordination for applications running on iOS. Each application must have an instance of full uiapplication (or subclass uiapplication). When an application starts, the Uiapplicationmain function is called, and in other tasks, the function creates a single UIApplication object. You can then invoke the Sharedapplication class method from this object.

(2) Uiviewcontroller

The Uiviewcontroller class provides a basic view of the iphone application management model. The basic view Controller class supports a presentation of the associated views, provides support for the management mode view, and supports views that rotate in response to device direction changes. Subclasses such as Uinavigationcontroller and Uitabbarcontroller, such as the other behaviors that provide management of complex hierarchical view controllers and views.

1) Uitabbarcontroller

The Uitabbarcontroller class implements a dedicated view controller to manage a broadcast-selectable interface. Does not apply to subclasses of this class. Instead, you can use its instance to render an interface that allows the user to choose between different modes of operation. This tab bar interface displays different modes between tabs at the bottom of the window to show the mode's opinion selection.

2) Uitableviewcontroller

The Uitableviewcontroller class creates a controller object that manages the table view.

3) Uinavigationcontroller

The Uinavigationcontroller class implements a specialized view controller management hierarchy of content navigation. Does not apply to subclasses of this class. Instead, you can use instances when you want your application's user interface to reflect the hierarchy of your content. This navigation interface allows you to more effectively present your data and make it easier for users to browse content.

3-1) Uiimagepickercontroller

The Uiimagepickercontroller class manages customized and system-provided user interfaces, supports pictures and movies on devices, and chooses to save images and movies used in your app. The image picker controller manages user interaction and delegate objects to provide these interaction results.

3-2) Uivideoeditorcontroller

A Uivideoeditorcontroller object, or video editor, manages the user interface provided by the system by trimming the video frames from the beginning and end of the previously recorded movie, as well as recoding to reduce quality. The object manages the user interaction and provides the movie file system path that your delegate object edits. The Uivideoeditorcontroller class is characterized by the use of devices only and supports video recording.

(3) UIView

The UIView class manages the content of this area by defining a rectangular area on the screen and interface. At run time, the view object handles any rendering of content within its region, and also handles any interaction with that content. The UIView class itself provides the basic behavior of the background color to fill the rectangular area. More complex content can be presented by inheriting UIView and implementing the necessary drawings and self-event-handling code. The Uikit framework also includes a

Quasi-subclasses can use a range from simple buttons to complex sets of tables. For example, a Uilabel object draws a text string and a Uiimageview object draws an image.

1) UIWindow

The UIWindow class defines, manages, and coordinates Windows applications that display objects on the screen (such as Windows). The two main functions of a window are to show comments on their area of views and distribution activities. The window is at the root of the view hierarchy. A window belongs to one level, and one level of the window appears at the other level. For example, an alert appears above a normal window. Typically, there is only one window in the iOS application.

2) UILabel

The Uilabel class implements a read-only text view. You can use this class of static text, such as you might use it to identify other parts of your user interface, to draw one or more lines. The basic Uilabel class provides control over the appearance of text, including whether it uses a layer of shading, or a highlight of the drawing. If you want, you can customize the appearance of the text further through inheritance.

3) Uipickerview

The Uipickerview class implements the object, the so-called selector view, to display one or more set of values, even with the analogy of a spinning wheel or slot machine. The user can choose to rotate the wheel so that the desired value of the row is defined with the selected

The corresponding relationship value between the. The Uidatepicker class uses a custom subclass of Uipickerview to display the date and time. To see an example, tap the Add ("+") button in the Alarm pane of the clock application.

4) Uiprogressview

When a mail application downloads a message, its progress bar is displayed at the bottom of the application. The Uiprogressview class provides a management-style progress bar for getting and setting values that are properties of the progress of a fixed task.

5) Uiactivityindicatorview

The Uiactivityindicatorview class creates and manages an indicator to show the progress of an indeterminate task. In terms of appearance, this means

is a "gear" that is animated by rotation.

6) Uiimageview

The view object of an image provides a view-based container for displaying a single image or a series of animated images. For animated images, the Uiimageview class provides control over the duration and frequency of setting animations. You can also start and stop animation freedom.

7) Uitabbar

The Uitabbar class implements a control that selects two or more buttons and is called a project. One of the most common uses of a tab bar is to implement a modal interface to attack an item's change selection. If you want to highlight or not change the appearance of an item temporarily, tap the button to use a Uitoolbar object. The Uitabbar class provides customizable capabilities for users to rearrange tab bars, delete and add items to the bar. You can use the delegate of the tab bar to increase this behavior.

8) Uitoolbar

A toolbar is a control that displays one or more buttons that are referred to as toolbar items. The toolbar instantly highlights or does not change the appearance of an item when it is tapped.

9) Uinavigationbar

The Uinavigationbar class implements a level of content navigation control. One of its bar bars, usually displayed on top of the screen, contains buttons for navigating up and down a level. The primary property is the left (back) button, the center name, and an optional right-hand button. You can specify these custom views.

) UITableViewCell

The UITableViewCell class defines the cells that appear in the properties and behavior of the UITableView object.

One) Uiactionsheet

Use the Uiactionsheet class to give the user a set of alternatives to how to continue a given task. You can also use the action table to prompt the user to confirm that there is a potentially dangerous action. The action table contains an optional caption and one or more buttons, each of which corresponds to the action taken.

Uialterview)

Use the Uialertview class to display a warning message to the user. The alert view functions similarly, but looks different from an action table (an instance of Uiactionsheet).

Uiscrollview)

The Uiscrollview class provides support for displaying content that is larger than the size of the application's window. It allows users to scroll through the content, swipe gestures, and pinch gestures to zoom in and part of the content.

13-1) Uitextview

The Uitextview class implements a scrolling, multi-line behavior of the region. The class supports the display of custom fonts, colors, and aligned text, while also supporting text editing. You can usually use a text view that displays multiple lines of text, such as when displaying a large text file in the body.

13-2) UITableView

An instance of UITableView (or simply, a table view) is a means for displaying and editing the information that is listed hierarchically.

Uisearchbar)

The Uisearchbar class implements text field control for a text-based search. The control provides a search button, input text field bookmark button, and a Cancel button. The Uisearchbar object does not actually perform any searches. You can use a delegate that conforms to the Uisearchbardelegate protocol object, and when the action is implemented, the input text and the button are clicked.

UIWebView)

You use the UIWebView class to embed Web page content in your application. To do this, you simply create a UIWebView object that attaches it to a window that sends a request to load the Web page content. You can also use this class to move forward and backward in the history of a Web page, and you can even set some of the page content properties to be programmed.

Uicontrol)

Uicontrol is the base class for control objects, such as the user's intent to communicate to the application's buttons and sliders. You cannot instantiate controls directly using the Uicontrol class. Instead, it defines a common interface and the behavior structure of all its subclasses.

16-1) UIButton

An instance of the UIButton class implements the button on the touchscreen. Touch a button to intercept events and action messages when sent to the target object. Set of items

and methods of action are inherited from Uicontrol. This class provides a way to set the appearance properties of headings, images, buttons, and so on. With these accesses, you can specify a different appearance for each button state.

16-2) Uidatepicker

The Uidatepicker class implements an object that uses multiple rotated wheels to allow the user to select a date and time. The iphone example is a date selector, timer and alarm clock set in the Clock Application pane. You can also use the date selector as a countdown timer.

16-3) Uipagecontrol

You can use the Uipagecontrol class to create and manage page controls. A page control is a point inheritance in the control center. Each point corresponds to one application's document (or other entity's data Model) page, and the white dot represents the currently browsed page.

16-4) Uisegmentedcontrol

A Uisegmentedcontrol object is a horizontal control of multiple segments, each of which operates as a separate button. Segmented control provides a compact means of combining control together.

16-5) Uitextfield

The Uitextfield object is a display editable text and action message sent to the target object when the user presses the Back button control. You can usually use this class to collect a small amount of text from the user and perform some immediate action, such as a search operation, based on that text.

16-6) UISlider

A UISlider object is a visual control that is used to select a continuous range of values from a single value. The sliders are always displayed as horizontal bars. Means

, or thumb, note the current value of the slider and change the settings for the user to move through.

16-7) Uiswitch

You can use the Uiswitch class to create and manage on/off buttons that you will see, such as preferences (settings) for services such as in airplane mode. These objects are called switches.

26.UIScreen

A UIScreen object that contains the bounding rectangle for the entire screen of the device. When setting the application's user interface, you should use this object's properties to be able to frame the rectangle for your application's proposed window.

27.UIScreenMode

A Uiscreenmode object represents the possible properties that can be applied to a UIScreen object. The object encapsulates the size of the underlying display buffer for the screen and the aspect ratio information using a single pixel.

28.UISearchDisplayController

The search display controller manages a search bar that shows the results of a table view that shows another view of the data search that the controller manages.

29.UITextChecker

You use an instance of the Uitextchecker class to check for misspelled word strings (usually text in a document).

30.UITextPosition

A Uitextposition object represents the position in a text container, in other words, it is an index to the support string displayed in the text.

31.UITextRange

A Uitextrange object represents a character in the scope of a text container, in other words, it determines a starting and ending index of a string that supports a text input object.

32.UITouch

A Uitouch object indicates that there is a specific event on the screen with a finger or motion. You can pass the Uievent object to the event-handling Response Object Uitouch object.

IOS Uikit Framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.