我还没有找到任何关于如何使用Pixate和Xcode 5获得实时css更新的参考。如果有人能为AppDelegate中的‘AppDelegate’提供代码,那将是有帮助的。谢谢。
发布于 2014-04-13 20:11:18
这里有一个旧的问题/答案,您可以用作参考:How to get Pixate v2 Real Time CSS working with Xcode 5
注意,Freestyle已经将基对象从Pixate重命名为PixateFreestyle。
发布于 2014-04-15 14:40:23
谢谢保罗。利用那篇文章我就能让它起作用了。下面是我在AppDelegate.m文件中输入的代码。
导入"AppDelegate.h“
进口"PixateFreestyle/PixateFreestyle.h“
@implementation 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
[PixateFreestyle styleSheetFromFilePath:@"/path/to/project/default.css" withOrigin:PXStylesheetOriginApplication];
PixateFreestyle.currentApplicationStylesheet.monitorChanges = YES;
#endif
return TRUE;
}https://stackoverflow.com/questions/23031630
复制相似问题