Skip to content

Exception when adding a CCScale9Sprite to the a CCB #16

Description

@tklee1975

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions