ios - How to disable next button in a custom active step using ResearchKit in Swift 2.2? -


i new researchkit , have created own custom active step along view controller , need next button disabled short period of time. not sure how accomplish @ moment. discovered change title, cannot disable button cancelbuttonitem in navigation bar. example, disable cancel button this

cancelbuttonitem.enabled = false

is there next button in active step? if can give me example of such?

thanks!

i found hack way how hide it:

for subview in self.view.subviews {     subview1 in subview.subviews {         subview2 in subview1.subviews {             subview3 in subview2.subviews {                  if let button = subview3 as? uibutton {                     button.hidden = true                 }             }         }     } } 

Comments