Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

precious.logic

macrumors newbie
Original poster
Dec 29, 2011
1
0
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:mad:"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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.