objective-c声明私有方法
@interface Controller : NSObject
{
NSString *something;
}
+ (void)thisIsAStaticMethod;
- (void)thisIsAnInstanceMethod;
@end
//声明私有的方法
@interface Controller (Private)
- (void)thisIsAPrivateMethod;
@end
///
objective-c中变量为私有,通过@property来设置变量的get、set方法;函数默认为public。