对不起我的英语,让我发自内心的说:) 在我工作的一个项目中,我注意到了一个有趣的时刻。
在 *.h 文件中声明接口:
@interface FrontViewController : UIViewController
...
@end
在 *.m 文件中我找到了另一个接口。
@interface FrontViewController()
// Private Properties:
@property (retain, nonatomic) UIPanGestureRecognizer *navigationBarPanGestureRecognizer;
// Private Methods:
- (IBAction)pushExample:(id)sender;
@end
@implementation FrontViewController
...
@end
为什么需要它?有什么意义呢?-我认为这是为了方便。是的?