As my question say, I am creating a ORKConsentReviewStep without the signature. But I would like to know if the user tap 'agree' or 'disagree'.
I tried:
let reviewResult = result.stepResultForStepIdentifier("kReview")
let r = reviewResult?.resultForIdentifier("kReview") as! ORKChoiceQuestionResult
let choice = r.choiceAnswers?.first as! Double
But it will crash.
Edit:
I am using this to get the choice from the SharingStep and was hoping the ReviewStep had the same:
let sharing = result.stepResultForStepIdentifier("kSharingStep")
let s = sharing?.resultForIdentifier("kSharingStep") as! ORKChoiceQuestionResult
let theChoice = s.choiceAnswers!.first as! Double