Reputation: 67
I want to create one .h
and .m
class for multiple .xib
like template.
is it possible ? an if yes then how to use one .h
an .m
file for multiple xib
?
Upvotes: 0
Views: 80
Reputation: 528
You sure can! :D you'll just have to load the xib file with -initWithNibFile:bundle:
. And in each of the xib's make sure the File's Owner class is set to the view controller of the .h .m
I hope this is what you're looking for :)
Upvotes: 1