0

carekit も使用するアプリで、researchkit テストから時限ウォークを使用しています。ただし、このエラーが発生する理由はわかりません。どんな助けでも大歓迎です。これは私がこれまでに持っているものです。(エラー状態未解決の識別子の使用)

 import ResearchKit

  public var timedWalk: ORKOrderedTask 
{return ORKOrderedTask.timedWalk(withIdentifier: "Timed  Walk",intendedUseDescription: "Assessment measures balance", distanceInMeters: 3, timeLimit: 13, includeAssistiveDeviceForm: true, options: .excludeConclusion) 

 //Create a question.
let title = "Estimate your fall Risk"
let text = "This assessment measure how fast you walk to estimate your fall risk. Start from a sitting position stand walk 10 feet turn around and  walk back to sitting position"
***let questionStep = ORKQuestionStep(identifier: "Timed Get up and Go", title: title, text: text, answer: answerFormat)*** 
  questionStep.isOptional = false


       //Create an ordered task with a single question
   return ORKOrderedTask(identifier: "Timed Walk", steps: [questionStep])
4

1 に答える 1

0

上記のコードの構文的に正しいバージョンは次のとおりです。

public var timedWalk: ORKOrderedTask {
    return ORKOrderedTask.timedWalk(withIdentifier: "Timed Walk",
                                    intendedUseDescription:" Assessment measure, the, balance",
                                    distanceInMeters: 3, timeLimit: 13,  options: .excludeConclusion)
}
于 2016-12-09T21:22:00.850 に答える