1. Simple replication can only implement shallow copy: assign values to the pointer, so that the two pointers point to the same memory space, and the operation is not safe.
2. The foundation class complies with the and protocols to implement the
Document directory
Create a string
Class Method
Get size
Comparison Policy
Case-insensitive comparison
How to determine whether a string contains other strings
Nsstring is a class used in cocoa to process strings. Below are some common
Search for files
Next we will use a program to combine the knowledge learned above, such as nsstring, nsmutablearray, nsenumerator, and nsfilemanager to operate the file system, such as creating directories, deleting files, moving files, or
The cygwin and iPhone sdks are installed in windows. After a lot of code is downloaded, the result is a mix of C objective-C. Since the company used to play C ++ games, compilation has always been a problem. I checked a lot of information and
I first came into contact with the delegation when I learned about the big talk design model. I am a javaer. That book is. net, which mentioned the concept of delegation and had corresponding usage and support. At that time, I felt quite strange.
1 Preface
The objective-C category provides a way to dynamically add new features to existing classes, instead of adding new features, categories can also be used as private functions of classes in Beijing. The header file and the implemented file
Several data types in objective-C are not the same as those in C. It is hereby recorded.
-ID is a pointer type that can point to any type of object.
-Bool is the same as char, but it is used as a Boolean value.
Yes indicates 1
No indicates
Uiwebview is one of the most commonly used sdks for iOS. It has a stringbyevaluatingjavascriptfromstring method that can embed Javascript into the page. Through this method, we can interact with webpage elements in uiwebview in IOS.
Uiwebview is one
Key Points of http://www.cnblogs.com/gugupluto/p/3159733.htmlObjective C Runtime Technology
Preface:
The runtime Technology of Objective C is very powerful. It can obtain and modify various class information at runtime, this section describes how to
I recently started to learn about iPhone development. Turing's basic objective-C tutorial is a good Getting Started Guide Book. Some minor problems are found during the learning process. Although it is not critical, it is helpful for developers
Objective-C for Java programmer Part 1
Object and basic type
Java contains the original, or a small part.InternalType. Are these values the objects one of the largest semantic differences between Java and smalltalk. In smalltalk, the original type
The first thing to note is:
Although GNUStep can be installed and used on windows, it is mainly intended for Linux users rather than Windows users. If you have good Linux development experience, it is good to use GNUStep. GNUStep is not powerful and
1. First install the Objective-C Compiler
GNUstep Windows Installer provides a simulated development environment for Objective-C on the Windows platform. There are four software packages, including GNUstep System and GNUstep Core, GNUstep Devel and
Path: NSPathUtilities. h
NSPathUtilities. h contains NSString functions and classification extensions, which allow you to operate on the path name.
The following is an example:
# Import # import # import # import # import int main
An example of learning the Foundation has used all the things mentioned above, which is not bad.
Code:
// The AddressCard interface declares the header file
AddressCard. h
# Import # import @ interface AddressCard: NSObject { NSString *
Link to the original article: a large number of objective-c developers have emerged in the past few years at http://pilky.me/view/21. Some are transferred from dynamic languages, such as Ruby or Python, and some are transferred from strong languages,
The code block is essentially similar to other variables. The difference is that the data stored in the code block is a function body. Using code blocks, you can pass in the number of parameters and get the return value just like calling other
NSSet and NSMutableSet are unordered, But they guarantee data uniqueness. When the same data is inserted, it will not have any effect. The internal implementation is a hash table, so you can search for a data within a constant time.
1. Use of NSSet[
This section describes Objective-C classes and class objects. The method is simple to use. 1. Classes and Methods
Class declaration syntax, declares a class called MyClass, which inherits from the root class: NSObject. (The root class can be
No matter how perfect a class design is, there will inevitably be unpredictable demands. How can we expand the existing class? Of course, inheritance is a good choice. However, Objective-C provides a special way to extend the class, called Catagory.
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.