我已经成功地得到了pixate 2.0.1用的XCode 5上的IOS 7项目。 它的真正真棒实际上! 它甚至会更多的方式与实时CSS真棒。 这基本上是在那里,而CSS文件编辑并保存在iPhone / iPad的模拟器将实时更新。 现在,那只是樱桃一路。 但不幸的是我还没有能够得到它的工作。 我跟着保罗科尔顿给这里的方向: http://youtu.be/rjNrNIyEL_c 。 但它是Pixate版本1和使用现在已经过时PXEngine语法。
任何人都知道如何在Pixate的版本2.0.1得到这个工作?
假设你已经按照这里找到适合安装2.x版本的最新指示: 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
}
希望帮助。