how to implement private function in Objective-c?
1 min readFeb 7, 2018
objective-c don’t have private keyword ,
if you want to implement private function in objective-c
just add @interface before @implementation in .m file
(almost @interface only write in .h file)
xxx.m file
#import “private_func.h”
@interface private_func()
-(void) doMyPrivateFunction;
-(int) getNumber;
@end
@implementation private_func
//code
@end