替换对researchkit上的个人同意书的地图后,如何对摘要和内容进行本地化?

时间:2018-10-22 18:54:10

标签: swift xcode researchkit

在将地图替换为以下代码以获取同意部分中的单个内容之后,我应该如何定位它?

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
}

0 个答案:

没有答案