First for the more lazy me, install the virtual machine is also more trouble, directly under the 51co client to learn object-c under Windows, but the conditions of the small partner or imac bar, convenient, but also useful. In the process of learning object-c, the sense of code seems messy, especially some @, and * and other symbols doped among them, for the total confusion of the code understanding, such as:
-(void) SetStatus: (int) status;
(void) is the return value of this method
SetStatus is the name of this method
(int) is a parameter type, status is a specific parameter name
And then write a class, here found that Object-c is C, similar, introduce a variety of header files
#import<function/function.h> But the Import keyword is the same as C if it is not found in the current directory, you need to
, the system header file lookup, with #import "Function.h", object-c Save format is ". M" as the suffix, there is a @interface, is used to describe the class, not to implement polymorphic tools and so on. In particular, when you do the program, you can not tell what to write, what should not write, where to write, whether it is necessary to repeat the writing and affirmation.
After studying this course in 51cto, I feel that I have made progress, and some of the books do not understand what can be heard here, thanks to all the teachers and staff of 51cto.
This article is from the "11718608" blog, please be sure to keep this source http://11728608.blog.51cto.com/11718608/1789387
Learning object-c Lessons in 51cto