Hi,
Not sure whether this is a language feature I've misunderstood, or a compiler quirk.
I'm working with ResearchKit - ORKOrderedTask, the iOS 9 branch.
I've decided to subclass ORKOrderedTask in Swift.
My subclass is primarily to override StepAfterStep and StepBeforeStep. The content will be conditional on previous steps, so we will be defining that within the subclass. We may as well set the identifier too (although I think my work around will be to leave the identifier unset).
ORKOrderedTask is in Obj C. init is defined using the tag NS_UNAVAILABLE.
If I try to set up an init in the subclass, I'm told 'cannot override init which has been marked as unavailable'.
But if it's unavailable, surely if I write a subclass Init function, providing that function calls a designated initialiser (super.init identifier:"HelloWorld" steps:mySteps) it would be valid to set up a simple init?
Have I missed something? Or am I looking at a compiling issue?
Best wishes,
Andrew