iOS FlexLib之一

1,引入

   pod 'Yoga', '1.6.0'
    pod 'FlexLib'

2,设置base url

在AppDelegate.h 文件
#import 

- (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;
}

3,运行本地服务

image.png

你可能感兴趣的:(iOS FlexLib之一)