i have problem with my code i have one class having sprite
class1.H
@interface Class1 : CCNode {
CCSprite *friPanSprite ;
}
@property (nonatomic,copy) CCSprite *friPanSprite;
@end
class1.m
@implementation Class1
@synthesize friPanSprite;
@end
so when i do this in main
CCSprite *lable = [CCSprite spriteWithFile
"test.png"];
Class1 *objclass = [[Class1 alloc]init];
objclass.friPanSprite = lable;
it got sigarta error but when i change the line
@property (nonatomic,retain) CCSprite *friPanSprite;
to this it worked but i want to copy the ccsprite or want to make the clone of the sprite how can i do this can any one help me thanks in advance
class1.H
@interface Class1 : CCNode {
CCSprite *friPanSprite ;
}
@property (nonatomic,copy) CCSprite *friPanSprite;
@end
class1.m
@implementation Class1
@synthesize friPanSprite;
@end
so when i do this in main
CCSprite *lable = [CCSprite spriteWithFile
Class1 *objclass = [[Class1 alloc]init];
objclass.friPanSprite = lable;
it got sigarta error but when i change the line
@property (nonatomic,retain) CCSprite *friPanSprite;
to this it worked but i want to copy the ccsprite or want to make the clone of the sprite how can i do this can any one help me thanks in advance