在将地图替换为以下代码以获取同意部分中的单个内容之后,我应该如何定位它?
let consentSections: [ORKConsentSection] = consentSectionTypes.map { contentSectionType in
let consentSection = ORKConsentSection(type: contentSectionType)
switch contentSectionType {
case .overview:
consentSection.summary = "Overview"
consentSection.content = "Overview - Content"
case .dataGathering:
consentSection.summary = "DataGathering"
consentSection.content = "DataGathering - Content"
case .privacy:
consentSection.summary = "Privacy"
consentSection.content = "Privacy - Content"
case .dataUse:
consentSection.summary = "DataUse"
consentSection.content = "DataUse - Content"
case .timeCommitment:
consentSection.summary = "TimeCommitment"
consentSection.content = "TimeCommitment - Content"
case .studySurvey:
consentSection.summary = "StudySurvey"
consentSection.content = "StudySurvey - Content"
case .studyTasks:
consentSection.summary = "StudyTasks"
consentSection.content = "StudyTasks - Content"
case .withdrawing:
consentSection.summary = "Withdrawing"
consentSection.content = "Withdrawing - Content"
default:
break
}
return consentSection
}