0

.h

@interface AdvancedSearchMainVC : UIViewController

.m

#import "AdvancedSearchMainVC.h"

@interface AdvancedSearchMainVC ()

@end

@implementation AdvancedSearchMainVC

which is the best location to add "#define HIDEBUTTON_TAG 100" and why

what's the different between macro definition at @interface @ implementation and in .h

thx a lot~~

1 Answer 1

2

AFAIK, the only difference is scope. If you define it in the interface, anything that imports the header can also access the value, whereas if you put it in the implementation it can only be accessed by that class's methods.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.