Today I am looking for knowledge.
I am working on some code to work, and after the review I had full Brain Fart and canβt remember why we are doing something with .h and .m files in objective-c
- I was wondering why we import files and declare method names in .h files? (I know this is due to processing, but cannot remember details).
- Why do we sometimes import files directly into a .m file, rather than into .h files in some cases.
- When you declared a method in an .h file, do you do this because the class and / or libraries you use do not perform the function in which you need them too?
- Is there ever a case when you declared a method that does not exist in any of your libraries or in your .h file in your .m file?
Thanks to everyone, I hope everything made sense.
source share