Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何区分objective-c中的私有成员变量?_Iphone_Objective C_Private_Member - Fatal编程技术网

Iphone 如何区分objective-c中的私有成员变量?

Iphone 如何区分objective-c中的私有成员变量?,iphone,objective-c,private,member,Iphone,Objective C,Private,Member,对于私人方法 我可以用 @interface MyClass(PrivateMethods) - (void) _foo; @end 如何在目标c中声明私有成员变量? 你可以按如下方式申报 @private //variable; 看看这个问题。 @private //variable;

对于私人方法

我可以用

@interface MyClass(PrivateMethods)
- (void) _foo;
@end  
如何在目标c中声明私有成员变量?


你可以按如下方式申报

@private //variable;
看看这个问题。

@private //variable;