We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When putting a CCScale9Sprite on the CCLayer Interface file; Cocos2d version: cocos2d-iphone v2.1 CCBReader version: #define kCCBVersion 5
Exception raise at the following location: File: CCNode+CCBRelativePositioning.m
#ifdef __CC_PLATFORM_IOS [self setValue:[NSValue valueWithCGSize:absSize] forKey:propertyName]; #else [self setValue:[NSValue valueWithSize:NSSizeFromCGSize(absSize)] forKey:propertyName]; #endif
It will be fine if the "[self setValue]" removed or create a method "setValue" in CCScale9Sprite.m
Sorry that I don't know how to fix it yet!
Regards, ken
The text was updated successfully, but these errors were encountered:
Solution for this problem: Add the following method to CCScale9Sprite.m
- (void)setValue:(id)value forUndefinedKey:(NSString *)key { // NSLog(@"key=%@", key); // uncomment if want to debug if([key isEqualToString:@"preferedSize"]) { CGSize size = [value CGSizeValue]; self.preferredSize = size; } }
Note: the key is defined as "preferedSize" but not "preferredSize"; it may be something wrong in the exported CCB files.
Sorry, something went wrong.
No branches or pull requests
When putting a CCScale9Sprite on the CCLayer Interface file;
Cocos2d version: cocos2d-iphone v2.1
CCBReader version: #define kCCBVersion 5
Exception raise at the following location:
File: CCNode+CCBRelativePositioning.m
It will be fine if the "[self setValue]" removed or create a method "setValue" in CCScale9Sprite.m
Sorry that I don't know how to fix it yet!
Regards,
ken
The text was updated successfully, but these errors were encountered: