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)