IOS-UI notes (first day)

Source: Internet
Author: User

Ui:user Interface User Interface
Common framework: UIKit-Create and manage user interfaces for applications
Quartzcore-Provides animation effects and the ability to render through hardware
Coregraphics-Provides a C-based API for 2D drawing
Corelocation-Get location information using GPS and WiFi
Mapkit-an interface for the application to provide an inline map
Avfoundation-Audio processing
ibaction: You can drag lines on a method to listen for events (click events, double-click events)
Iboutlet: You can drag a property to change the value or state in the corresponding control
--------------------------------------------------------------------------------
Resign resign; give up.
Resignfirstresponder Give up first responder
[Self.view Endediting:yes]; Exit Keyboard
Error message: Setvalue:forundefinedkey:]: This class was not key value coding---connection problem
--------------------------------------------------------------------------------
Common controls:
UIButton button UILabel text label
Uitextfield text input box Uitextview text display controls that can be scrolled
Uiimageview Picture Uialertview dialog box (Middle Bullet box)
Uiactionsheet Bottom Bullet Box uiscrollview scrolling control
UITableView Table Uinavigationbar navigation bar
Uipagecontrol pagination Control Uicollectionview Nine Gongge
UIWebView Web page Display control Uipickerview selection area
Uidatepicker Date selector Uitoolbar tool bar
UISlider Slide block Uiprogressview progress bar
Uisegmentcontrol Tab Uiactivityindicator Circle
--------------------------------------------------------------------------------
@property (nonatomic, readonly) UIView *superview;
Get your own parent control object
@property (nonatomic, readonly, copy) Nsarray *subviews;
Get all of your child control objects
@property (nonatomic) nsinteger tag;
The id\ ID of the control that the parent control can use to locate the corresponding child control
@property (nonatomic) Cgaffinetransform transform;
Control's shape change properties (you can set rotation angle, scale, pan, and so on)

@property (nonatomic) cgrect frame;
Position and dimensions of the control's rectangle in the parent control (the origin of the coordinates in the upper-left corner of the parent control)
@property (nonatomic) cgrect bounds;
The position and size of the rectangle where the control is located (the origin of the coordinates in its upper-left corner, so the bounds x\y is typically 0)
@property (nonatomic) Cgpoint Center;
The position of the midpoint of the control, in the upper-left corner of the parent control, as the coordinate origin.

IOS-UI notes (first day)

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.