读取plist文件数据(可显示中文)
Dictionary* dic = Dictionary::createWithContentsOfFile("string.plist"); auto s = (String*)dic->objectForKey("str"); CCLOG("%s", s->getCString()); auto lab = Label::create(s->getCString(), "Arial", 35); lab->setPosition(Vec2(100, 100)); this->addChild(lab);
plist文件构成