Unable to use iOS framework which is internally using .xib file

前端 未结 8 2255
你的背包
你的背包 2020-12-16 19:14

I am trying to make a universal framework, for iOS by following steps specified in this URL: Universal-framework-iOS

I have a viewController class within, that frame

8条回答
  •  粉色の甜心
    2020-12-16 19:19

    Try this in main.m

    #import "ViewControllerWithinFramework.h"  //import this
    
    int main(int argc, char *argv[])
    {
        @autoreleasepool 
    {
        [ViewControllerWithinFramework class]; //call class function
            return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
        }
    }
    

    I hope this will work for you.

提交回复
热议问题