Recently, the company's operations to engage in a blind activity, its activities to provide data support services, the Web front-end in the public account as the main operating positions, and iOS, Android to provide the corresponding portals and
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];
What is classification?
For an extension of an existing class, the classification extends only the method and does not extend the property.Classification does not change the code of the original class.The syntax of a taxonomy is similar to that of
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
The earth has only one, so declare a Earth object on it, you can not declare two AH! Similarly, sometimes a class can have only one object case, such as a server, just want to save to a in//face, this way, the next time you can take out the last
Type encoding (Type Encoding)As a complement to runtime, the compiler encodes the return value and parameter type of each method as a string and associates it with the selector of the method. This coding scheme is also very useful in other
the so-called framework in iOS, after all, is a directory, and iOS provides a lot of frameworks that we can call in the application. Many applications use frameworks such as foundation, Uikit, and core graphics. Depending on the template you choose
Polymorphic The concept of polymorphismThere is an example of this. I told my colleague that I was thirsty in the morning. Result: A colleague took my cup to fetch me a glass of water. B My colleague took a disposable paper cup on the water
Everything is possible.the protocol defines a set of methods for other classes to implement. The protocol itself is not a class. a protocol is a set of methods that are not implemented. A protocol is a group that has a certain correlation. the
We have learned from childhood, the dictionary has always been a good helper of our study, in OC the dictionary still has its irreplaceable role, and now we will go through her mysterious veil ...Advantages of the Dictionary:1. A dictionary is a
Apple Official document: Unstable portalThere are several reading notes, other knowledge points are not important or are already familiar with no need to record."Programming with Objective-c" chapter III Working with Objects"Programming with
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
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
BlockBlock is used to save a piece of codeBlock's logo: ^Blocks are like functions: You can save code, return values, physical arguments, call methods as you call them.External variables can be accessed inside the blockBy default, the outer local
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
Knowledge Review
One, custom construction method
Second, description method
Description: This objective-c topic is a prelude to learning iOS development, and to enable programmers with experience in object-oriented language development
Nsarray: Ordered collection, Nsset: Unordered collection, hash store. But Nsset guarantees the uniqueness of the data. When you insert the same data, there is no effect. From the internal implementation is a hash table. Nsmutableset is a subclass of
? The instance variable is available in degrees.
Visibility of
features
Public (Common)
Instance variables can be manipulated outside and inside the class
Protected (protected, default)
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