What is multithreading?First, what is a thread that you can understand as a thread is the process process.Process is God horse?A process is a small task in a computer.Let me tell you this.Our main program is a rib fool, only one thing in a time.
Nsmutablearray: Variable ArrayNsmutablearray is a subclass of NsarrayCreating an Nsmutablearray Array objectTo add an array element: // Create an array Nsmutablearray *array = [Nsmutablearray arraywithobject:@ "lier",@ "Hello ", nil];
02. First OC Language classIn the Java language, creating a class requires only one file, whereas in the OC language, creating a class requires two files. m files and. h files.The. h file is a declaration class used to declare member variables and
Recently, we're going to develop some apps for the iphone, IPod Touch and ipad, so you need to start learning Objective C (Apple's launch of a C-like development language). Due to the limitations of Apple's self-closing industrial chain development
Objective-c is an Apple software programming language that wants to learn, debug, and have an integrated development environment (IDE) handy. There are three types of methods for building OBJECTIVE-C's integrated development environment:1) using the
First, comments1. What is a note?A comment is a string that is used in the code to illustrate, not execute.2. What is the definition of a note?In OC, we use a double slash "//" to denote a single-line comment, with a double slash (//) at the very
Self,superSelf is understood as this in C + +, and when the method is called with self, the lookup starts from the current class, and the previous parent class is not searched in turn.Super is the parent class, and you can call the method of the
In our iOS program, we often use multiple third-party open source libraries, usually by downloading the latest version of the open Source Library and then dragging it into the project.However, once the number of third-party open source libraries is
Just see the seventh chapter first.Basic data types, assignment statementsFor loop, while loop, do While loopBranch judgment, if statement, IfElse statement, switch statement//Main.mMyoc//Created by DBJ on 2015/11/15.Copyright? 2015 DBJ. All rights
When you define a class in Objective-c, you can also use a public, private, similar to C + + to decorate member variables, as follows:[CPP]View Plaincopy
@intterface test:nsobject{
@public
int i;
INTJ;
In Objective-c, you use @property to identify the attribute (typically an instance variable). Use the @synthesize to identify the variables declared in the implementation file, allowing the system to automatically generate the Set method and get
Objective-c Object Objective-c Object
Profile
Creating and Using objects
News
In-memory objects
Id
ProfileObjects: Holds data and contains a set of functions that can use the data that the object holds. Sending a
The self and Super 1.self in Objective-c is a hidden parameter, and super is the compiler indicator that 2.self and super point to the same message receiver 3.self call is from the method list of the current class to find the method, if not go to
Uitoolbar control: is a frequently used toolbar control, in which you can add many other controls, UILabel, UIButton, UIImage, Uibarbuttonitem, Uitextfield, and so on 、、。 A layout that can be used to customize the controls in view views. After the
category: You can extend some methods to a class (without modifying the code of the original class)function : You can add some methods to the class without changing the original class content.Use note :1. Only add methods, cannot increase member
11 explains the message passing mechanism of the object12 What happens when a message is received that cannot be read will start the message forwarding mechanism,
If the object cannot respond to a selector, it enters the message forwarding
Playing a few controls and gestures today reminds me of the time I used to play unity, drag controls, set properties, and write some corresponding values.GestureSteps to use gestures:1. Create a gesture that meets your needs, and when you create it,
Custom views are now a bit confusing, with a rough idea of how to write:1. Create a new view controller that designates this view controller as the root View Controller for window2. Customize the view Ltview, explicitly ltview the internal controls,
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.