Shawn
Shawn

Reputation: 245

iPhone Development: Importing from a .m file to another

I need to import functions from .m file to another .m file. If it matters, the first .m file is abc.m and the second one is bca.m

Thanks a lot.

Upvotes: 1

Views: 300

Answers (2)

sidyll
sidyll

Reputation: 59287

Add

#import "abc.h"

To the top of bca.m.

Upvotes: 1

Alex Wayne
Alex Wayne

Reputation: 187034

# import "bca.h"

Import the header, not the implementation.

Upvotes: 3

Related Questions