What is GCDGCD is an apple of the multi-threaded programming of a new set of abstractions based on the C language layer of API, combined with block simplifies the multi-threaded operation, so that we can be more safe and efficient threading
UIView
Controls that inherit from UIView can add child controls
Property
Superview
Who calls Superview, then gets the parent control of WHO
Subviews
Subviews is
1, in the development of Android, will encounter to save data to the phone and from the phone to obtain data from the situation/*** Store the data in the phone memory * *@paramNumber *@paramPassword *@return */ Public Static
In Android development, if you want to add a listener event to a button, there are three ways to implement it.1, the way one Public classMainactivity extends Actionbaractivity {@Overrideprotected voidonCreate (Bundle savedinstancestate)
Several ways of the timerIn the software development process, we often need to execute a method after a certain period of time, or to follow a certain cycle of execution of a method. At this time, we need to use the timer.However, there are many
Mixed paths and global macro pathsRecently in the work of a place to use a third-party library, but the current swift version has not been found, and do not want to write (in fact, do not write), so think of the mixed, but in the middle there are a
Implementation ideas
To implement a drawing, you typically need to customize a UIView subclass, overriding the-(void) DrawRect: (CGRect) Rect method of the parent class, implementing the drawing operation in the method
To display the
Uiactivityindicatorview1.activityIndicatorViewStyleSet the style of the indicatorUiactivityindicatorviewstylewhitelargeUiactivityindicatorviewstylewhite (Default style)Uiactivityindicatorviewstylegray2.hidesWhenStoppedis hidden when the animation is
1. Front it also wrote how to associate Android-support-v4.jar source codeToday, when the new project uses the above method, it is not successful. Back and forth against the retest for a long time, and finally foundCreates a new project that
Text Property attributes1.NSKernAttributeName: @10 adjustment sentence kerning sentence adjustment2.NSFontAttributeName: [Uifont systemfontofsize:_fontsize] Set font3.NSForegroundColorAttributeName: [Uicolor redcolor] Set text
Uiimageview Property1.Image set Picture, default displayUiimageview *_imageview = [[Uiimageview alloc]init];_imageview.image = [UIImage imagenamed:@ "Me.png"];2.highlightedImage set the picture displayed in the highlighted
Uicontrol Events1.UIControlEventTouchDownSingle Touch Press event: The user touches the screen, or when a new finger falls.2.UIControlEventTouchDownRepeatMulti-touch Press event, touch count greater than 1: when the user presses the second to third
Uiswitch Property1. OntintcolorThe color of switch when on? Switchimage.ontintcolor = [Uicolor Graycolor];2.tintColorThe switch color when offSwitchimage.tintcolor = [Uicolor Greencolor];3.onImageSet the on icon? Switchimage.onimage = [UIImage
Uislide PropertyMinimumvalue: when the value can be changed, the slider can slide to the minimum position, the default is 0.0_slider.minimumvalue = 10.0;Maximumvalue: when the value can be changed, the slider can slide to the maximum position, the
Function call method is F (...)If f is not a function, then this invocation method is equivalent to executing f.apply (...).If f (...) =value is equivalent to calling F.update (..., Value) apply for the associated object, you can omit the new
The three methods of intent of Android Are: 1, startactivity (), 2, startactivityforresult (), 3, Calling the method "actionstart ()" in the next activity customization, That's the best way.first, the general way to value Jump: startactivity ()
Uialertview1.TitleGets or sets the caption on the UIALERTVIEW.2.MessageGets or sets the message on the UialertviewUialertview *alertview = [[uialertview alloc] initwithtitle:@ "Title" message:@ "message" delegate:self cancelbuttontitle:@ "cancel"
Controller
1. What is a controller: any class that inherits from Uiviewcontroller is called a controller
2. The role of the Controller: manage UI interface (responsible for managing UI interface creation and handling of some events)
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