当我获取GKLocalPlayer
或使用loadPlayersForIdentifiers:identifiers withCompletionHandler:
获取列表或单个GKPlayer
别名GKPlayer
时,记录的对象看起来像这样:
2010-09-23 10:39:01.759 Cee-lo[76500:207] Players loaded by identity: (
"<GKPlayer 0x84125a0>(playerID: G:1234567890, alias: typeonetester1, status: Adding test friends., rid:(null))",
"<GKPlayer 0x8412530>(playerID: G:1234567890, alias: typeonetester2, status: Adding Game Center to app, rid:(null))"
)
我的问题是,我如何status
从这个对象中获取,这个对象的类型到底是什么?GKPlayer类中没有“摆脱”或“状态”属性,所以当我执行以下操作时:
GKPlayer *player = [self.friends objectAtIndex:row];
cell.nameLabel.text = player.alias;
cell.statusLabel.text = player.status;
我收到“在非结构或联合的情况下请求成员‘状态’”错误。