问题
I have got Class1.h in the main Application. And I have to use Class1.h in the Today Widget in iOS. What is the method to share the classes among the main app and widget in iOS ?
回答1:
In Xcode, find Class1.m in the Project Navigator. Select it and, in the File Inspector, check the box next to your Today widget target under Target Membership.
Then you should be able to import Class1.h in your Today widget code.
来源:https://stackoverflow.com/questions/34157254/how-to-include-classes-of-main-application-in-to-today-widgets-in-ios