I've made a tilemap in Tiled map editor, and saved added it to xcode.
[self addChild:tileMap z:-1];
I have found that if you include the tile png image through spritebuilder, a big glitch happens, where all tiles become identical and distorted.
UPDATE, after some debugging, I've noticed that when the tilemap uses an image placed in the spritebuilder-style folders such as 'resources-phone', the glitch happens.
But just adding the file in the project makes the map work fine.
ADDING TILESHEET png in Xcode:
(the resources-phone / resources-phonehd/ resources-tablethd folders are empty)
Now, ADDING TILESHEET png through SpriteBuilder/ resources-phonehd folder:
And this happens...
Any ideas why this might happen?