Compared to the simple factory model, only one factory can produce the mobile phone is also fixedThe abstract factory model is similar to having many factories that create a factory to produce when a user wants to buy a cell phone.For example, a
in objective-C, the real implementation of message and method is bound in the execution phase, rather than the compilation phase. The compiler converts the message to the call of the objc_msgsend method. the objc_msgsend method contains two
During iPhone development, you will often encounter multiple strings to be connected. The following is my summary:
Nsstring * Hello = @ "hello ,";
Nsstring * World = @ "world! ";
Nsstring * helloworld;
Connect the hello and world strings.
Http://www.codeios.com/thread-26-1-1.html
Because the ios sdk is relatively low-level, developers have to do more physical work. Fortunately, there are many third-party class libraries that can be used to simplify a lot of unnecessary work. after
Struct is often used in C/C ++ development to help us encapsulate basic data types. In objective-C, struct can also be used to encapsulate data types. At the same time, cocoa touch also provides an nsvalue to help us better use struct in development.
I. Development Environment
If you use xcode, you can download it from the App Store. However, the download speed is too slow. You have downloaded and installed the command line tool on your own. I do not know whether the command line tool is
1 interface (interface conventions)
Interfaces are interpreted as interfaces. What is different from interfaces in Java \ C # Is that interfaces in obj-C should be considered as informal protocols, the interface in obj-C only indicates that the
The automatic reference counting (ARC) is IOS 4.0 or later. You can choose to enable the memory management function when creating a project in xcode 4.2 or later. It seems to be a selectable function, but it has a great impact on programming after
Although objective-C is based on C, it is quite different from C ++, Java, and C, it also makes me very uncomfortable. First, call the method [circle setfillcolor: kredcolor] cricle is the class name, setfillcolor is the method name, kredcolor is
From: http://blog.csdn.net/hulefei29/archive/2010/02/21/5314018.aspx
Objective-C has almost become Apple's patent. You can compile the objective-C program directly on Apple's xcode, but there are few compilation tools on the Windows platform, not
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.