Wednesday, July 16, 2014

Objective-C clearance (0)


1 [] use -> method is used in order to use the braces. Method [object honey badger method]; -> [Object method] [object methodWithInput: input]; -> [Object method: argument] is sseuyimyeo, output = [object methodWithOutput]; output = [object methodWithInputAndOutput: input]; Returns the value as. 2 duplicate [] I've seen the use of 1 to call the object's method [] is used. Then back to the calling function call form is possible? For example, in the case of C func1 (func2 ()); This form says. Of course possible. [NSString stringWithFormat: [prefs format]]; However, when two or more calls to complex honey badger and is not recommended. 3. Id (ID) id myObject = [NSString string]; [NSString string] to return any type of storage allows it to switch to the appropriate type. Here, of course, will be stored in myObject to NSString type. Originally halgeotyida write below. NSString * myString honey badger = [NSString string]; NSString * id will be to represent words. id guess that the pointer honey badger can be built. 4: (colon) [] When you call the method, honey badger and the method argument allows to distinguish. [MyData writeToFile: @ "/ tmp / log.txt" atomically: NO]; -> [Object method, method arguments: arguments]; 5 .. (dot, dot) Objective-C 2.0 dot for the getter and setter is used. photo.caption = @ "Today is a good day!"; honey badger output = photo.caption; You can get a value. 6 @ string honey badger unique front and Objective-C is used to indicate the directive. In other words, honey badger C being used to distinguish be different from that. 7 +, - operators, but also used as a method to separate the spent here. When describing a method in a class is a class method +, - refers to the instance method.
IT knowledge (41)
Objective-C clearance (0)
Login

No comments:

Post a Comment