Thursday, October 29, 2026
HomeiOS Developmentios - Can we omit header .h recordsdata and use solely .m...

ios – Can we omit header .h recordsdata and use solely .m file in goal c?

[ad_1]

Lately i switched to a undertaking which was primarily written in objective-c which i’m fairly new to, however in a single file i used to be shocked to see solely a .m file and as typical .h file was lacking. However nonetheless the code works correctly. My query is .h file not obligatory? Can they be merged right into a single .m file. There’s a pattern code snippet of .m file which i discovered.

The code snippet is:

#import <Cordova/CDV.h>
#import "CusView.h"
@interface MyFile: CDVPlugin {
}
@property (nonatomic, retain) NSString *someProp;
-(void) fillTheText : (NSString*)textual content;
@finish
@implementation MyFile
-(void) fillTheText : (NSString*)textual content {
NSLog(@"Print right here")
}
@finish

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments