如何获得使用Xcode 5的Pixate v2实时CSS

我已经在ios 7项目上成功地使用了XCode 5的pixate 2.0.1。 其实真的很棒! 而实时CSS就更加棒了。 这基本上是iPhone / iPad模拟器将在css文件被编辑和保存时更新的地方。 现在,这只是樱桃一路。 但不幸的是,我还没有能够得到它的工作。 我遵循了Paul Colton在这里给出的指示:http: //youtu.be/rjNrNIyEL_c 。 但它是Pixate的第1版,并使用现在过时的PXEngine语法。

有人知道如何得到Pixate 2.0.1版本的工作吗?

假设您已经按照安装版本2.x的最新说明在这里find: http : //www.pixate.com/docs/framework/ios/latest/getting-started/

然后确保你的AppDelegate中有以下内容:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //Initalize Pixate self.window.styleMode = PXStylingNormal; //Dynamically modify the Pixate stylesheet while the Simulator is running #ifdef DEBUG [Pixate styleSheetFromFilePath:@"/Users/YourHomeFolder/Path/To/default.css" withOrigin:PXStylesheetOriginApplication]; Pixate.currentApplicationStylesheet.monitorChanges = YES; #endif } 

希望有帮助。