DialogViewController和JSON

时间:2013-02-06 21:37:31

标签: iphone json monotouch.dialog

我一直在疯狂地试图学习如何使用MT.D.这是我的场景,我有一个DialogViewController,我正在推送到导航控制器。

this.NavigationController.PushViewController(this.ci2,true);

这就是DialogViewController的设置方式:

public partial class CourseInfo2:DialogViewController     {...          }

JSON相当混乱,这就是我所拥有的:

{
   "ResponseData":[
      {
         "ClusterID":"c02f1f5c-c61b-4f2c-ab5a-249966b3cdef",
         "ClusterName":"Northeast",
         "Courses":[
            {
               "CourseID":"8ab4f2b3-8160-4d7e-b79f-8d8b58926cc0",
               "CourseName":"Home Course",
               "SubCourses":[
                  {
                     "SubCourseName":"SubCourse1",
                     "SubCourseNumber":18
                  }
               ]
            },
            {
               "CourseID":"b3223464-333b-4c54-89c2-23908e0510c9",
               "CourseName":"Away Course",
               "SubCourses":[
                  {
                     "SubCourseName":"SubCourse1",
                     "SubCourseNumber":19
                  }
               ]
            }
         ],
         "IsHomeCluster":true
      }
   ],
   "ResponseErrors":[

   ]
}

我应该在哪里放置代码来解析json并加载DialogViewController的元素?

0 个答案:

没有答案