【发布时间】:2017-06-09 07:26:15
【问题描述】:
如何使用此 JSON 响应填充 TableSection。
我已经实现了类似下拉菜单的设计,并在其中有一个原型单元格,其中并排有两个标签。 下面是我设计的结构
StudentDetailsSection V(按钮)
父亲的详细信息第 V 部分(按钮)
Mother'sDetailsSection V(按钮)
我还附上了我的设计截图
我的 JSON 响应在结构中。
{
"Student_Details":
[
{
"Student_ID": 1,
"School_ID": 1,
"FirstName": "Ammu",
"LastName": "Gopal",
"Date_Of_Birth": "2017-08-05T00:00:00",
"Gender": 1,
"Class": " LKG ",
"Section": "A",
"Mother_Tongue": "Tamil",
"Blood_Group": 1,
"Place_Of_Birth": "Chennai",
"Caste": 1,
"Religion": 1,
"Special_Person": 1,
"Languages_Known": "English,Tamil,Hindi",
"Distance_From_Residence_To_School": "11",
"Nationality": "Indian",
"Mode_Of_Transport": "School Transport",
"RTE": null,
"StudentStatus": 1,
"AppliedStatus": null,
"IsDeleted": null,
"Father_Name": "Kannan",
"Father_Mobile": "9845245254",
"Father_Email": "kannan@gmail.com",
"Father_Education": "Bsc",
"Father_Occupation": "Self-employer",
"Father_Name_Of_The_Organisation": "Bussiness",
"Father_Designation": "Self-Employer",
"Father_Annual_Income": "200000",
"Father_Office_Or_Business_Address": null,
"Mother_Name": "Mathi",
"Mother_Mobile": "9845245145",
"Mother_Email": "mathi@gmail.com",
"Mother_Education": "B com",
"Mother_Occupation": "Self Employer",
"Mother_Name_Of_The_Organisation": "Self Employer",
"Mother_Designation": "Self Employer",
"Mother_Annual_Income": "200000",
"Mother_Office_Or_Business_Address": null,
"Sibling_Details": null,
"Land_Line_Number": "044-2121444",
"Guardian_Name": null,
"Guardian_Mobile": null,
"Guardian_Email": null,
"Relationship": null,
"Guardian_Education": null,
"Guardian_Occupation": null,
"Guardian_Name_Of_The_Organisation": null,
"Guardian_Designation": null,
"Guardian_Annual_Income": null,
"Guardian_Office_Or_Business_Address": null,
"Guardian_Land_Line_Number": null,
"LeaveLetterApplied": null,
"Message": null,
"Date": null,
"Notify": null,
"Status": null
}
]
}
如何从此 jsonresponse 中获取数据并填写特定部分。希望得到帮助。提前致谢。
【问题讨论】:
标签: json uitableview swift3