我有一个枚举声明如下:
typedef enum MODE {
FRAMED, HALFPAGED, FULLPAGED
} MODE;
Run Code Online (Sandbox Code Playgroud)
有没有办法将FRAMED/HALFPAGED/FULLPAGED转换为字符串.
我知道C++有能力使用:
static String^ GetName(
Type^ enumType,
Object^ value
)
Run Code Online (Sandbox Code Playgroud)
是否会有Objective-C的等价物?
我正在使用CCSprite带有一些其他CCSprite对象作为孩子添加,我正在使用的其他动画(缩放和旋转)工作得很好,孩子也是动画.但是当我使用时CCFadeOut,它只会淡化父母.
我读过,淡出不适用于孩子们.除了迭代每个孩子并在每个孩子上调用淡出之外,还有什么方法吗?
首先,我使用的是版本1.10.2
我在打开pdf文档时遇到问题.
NSURL* documentURL = [NSURL URLWithString:[[loader getPDFResourcePath:file] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
PSPDFDocument* document = [PSPDFDocument PDFDocumentWithUrl:documentURL];
PSPDFViewController* pdfController = [[PSPDFViewController alloc] initWithDocument:document];
[self presentModalViewController:pdfController animated:NO];
Run Code Online (Sandbox Code Playgroud)
但我收到这些错误代码:
Oct 16 14:35:52 device-07 MODULESTEST[5150] <Error>: CFURLCreateDataAndPropertiesFromResource: failed with error code -15.
2012-10-16 14:35:52.217 MODULESTEST[5150:707] Error: -[PSPDFGlobalLock documentProviderForDocument:page:]/246 Cannot get document reference (although file exists) for /var/mobile/Applications/24968027-8B41-4B3B-937F-B9624F9661CB/MODULESTEST.app/buildresources/testbundles/bundle_one.bundle//activities/content_specifications.pdf
2012-10-16 14:50:10.038 MODULESTEST[5170:170b] Warning: __45-[PSPDFCache cacheDocument:startAtPage:size:]_block_invoke_0/1015 Document has zero pages. Not caching.
Run Code Online (Sandbox Code Playgroud)
我也使用了iExplorer3,该文件存在于应用程序中.