{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYModel/issues/68","repository_url":"https://api.github.com/repos/ibireme/YYModel","labels_url":"https://api.github.com/repos/ibireme/YYModel/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYModel/issues/68/comments","events_url":"https://api.github.com/repos/ibireme/YYModel/issues/68/events","html_url":"https://github.com/ibireme/YYModel/issues/68","id":142143033,"number":68,"title":"关于成功解析模型后的访问问题","user":{"login":"iOS-Denzel","id":17879931,"avatar_url":"https://avatars.githubusercontent.com/u/17879931?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Denzel","html_url":"https://github.com/iOS-Denzel","followers_url":"https://api.github.com/users/iOS-Denzel/followers","following_url":"https://api.github.com/users/iOS-Denzel/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Denzel/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Denzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Denzel/subscriptions","organizations_url":"https://api.github.com/users/iOS-Denzel/orgs","repos_url":"https://api.github.com/users/iOS-Denzel/repos","events_url":"https://api.github.com/users/iOS-Denzel/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Denzel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-20T09:04:27Z","updated_at":"2016-03-21T01:24:28Z","closed_at":null,"body":"首先对大神进行膜拜并表示敬意...\r\n第一种情况如果一个模型包含另一个模型,另一个模型里包含数组 解析后如何访问?\r\n\r\n    {\r\n    \"items\": [\r\n              {\r\n              \"title\": \"首页\",\r\n              \"key\": \"tab_home\",\r\n              \"subitems\": [\r\n                           {\r\n                           \"type\": \"tab\",\r\n                           \"title\": \"首页\",\r\n                           \"image\": \"tabbar_home_sel@2x.png\",\r\n                           \"image_hl\": \"tabbar_home_sel@2x.png\"\r\n                           }\r\n                           ]\r\n              },\r\n              {\r\n              \"title\": \"直播\",\r\n              \"key\": \"tab_live\",\r\n              \"subitems\": [\r\n                           {\r\n                           \"type\": \"tab\",\r\n                           \"title\": \"直播\",\r\n                           \"image\": \"tabbar_room@2x.png\",\r\n                           \"image_hl\": \"tabbar_room_sel@2x.png\"\r\n                           }\r\n                           ]\r\n              },\r\n\r\n\r\n\r\n\r\n第二种情况模型中包含模型,为什么不能用model.model.属性的方法访问...\r\n\r\n    {\r\n    \"items\": [\r\n              {\r\n              \"title\": \"首页\",\r\n              \"key\": \"tab_home\",\r\n              \"subitems\": {\r\n                           \"type\": \"tab\",\r\n                           \"title\": \"首页\",\r\n                           \"image\": \"tabbar_home_sel@2x.png\",\r\n                           \"image_hl\": \"tabbar_home_sel@2x.png\"\r\n                           }\r\n              \r\n              },\r\n              {\r\n              \"title\": \"直播\",\r\n              \"key\": \"tab_live\",\r\n              \"subitems\":\r\n                           {\r\n                           \"type\": \"tab\",\r\n                           \"title\": \"直播\",\r\n                           \"image\": \"tabbar_room@2x.png\",\r\n                           \"image_hl\": \"tabbar_room_sel@2x.png\"\r\n                           }\r\n              \r\n              },\r\n\r\nxcode报错说我第二个模型是一个字典..."},"comment":{"url":"https://api.github.com/repos/ibireme/YYModel/issues/comments/199078641","html_url":"https://github.com/ibireme/YYModel/issues/68#issuecomment-199078641","issue_url":"https://api.github.com/repos/ibireme/YYModel/issues/68","id":199078641,"user":{"login":"iOS-Denzel","id":17879931,"avatar_url":"https://avatars.githubusercontent.com/u/17879931?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Denzel","html_url":"https://github.com/iOS-Denzel","followers_url":"https://api.github.com/users/iOS-Denzel/followers","following_url":"https://api.github.com/users/iOS-Denzel/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Denzel/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Denzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Denzel/subscriptions","organizations_url":"https://api.github.com/users/iOS-Denzel/orgs","repos_url":"https://api.github.com/users/iOS-Denzel/repos","events_url":"https://api.github.com/users/iOS-Denzel/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Denzel/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T01:24:28Z","updated_at":"2016-03-21T01:24:28Z","body":"就是items.subItems.type 这样的语法在这个模型会出错,其他的模型我试了 都可以,已经晕了,应该是我的问题吧,不知道错在哪"}}