1,引入
pod 'Yoga', '1.6.0'
pod 'FlexLib'
2,设置base url
在AppDelegate.h 文件
#import <FlexNode.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[super application:application didFinishLaunchingWithOptions:launchOptions];
// Override point for customization after application launch.
FlexSetPreviewBaseUrl(@"http://192.168.0.33:8000/FlexLib/res/");
return YES;
}