Here’s a simple C++ class for loading tile map data from TMX files produced by the Tiled map editor. Contains Xcode project with demo.
USAGE:
NLTmxMap* map = NLLoadTmxMap( "map1.tmx" );
std::cout << map->width << " x " << map->height << std::endl;
delete map;
LIMITATION: you need to select “CSV” map data encoding in Tiled preferences. I didn’t bother with decoding the base64/gzip formats that Tiled also supports.