Hey guys. Why is it that this will work:
tile1.image = [characterToTile characterImage];
but this doesn't? (please note I pass the value 1 as the position parameter):
NSArray *characterArray = [[NSArray alloc] initWithObjects: tile1, tile2, nil];
-(void)putCharacter: (Character)characterToTile onTile: (NSInteger) charPosition {
I don't have the compile error in front of me but it's the one about request for member in something not a structure or union. Any help would be greatly appreciated!!
tile1.image = [characterToTile characterImage];
but this doesn't? (please note I pass the value 1 as the position parameter):
NSArray *characterArray = [[NSArray alloc] initWithObjects: tile1, tile2, nil];
-(void)putCharacter: (Character)characterToTile onTile: (NSInteger) charPosition {
[characterArray objectAtPosition:charPosition].image = [characterToTile characterImage];
I don't have the compile error in front of me but it's the one about request for member in something not a structure or union. Any help would be greatly appreciated!!