Thanks. Of course, I was misreading the precedence operators (I was reading it as (self.isOn = newValue) ? .myTrue : .myFalse . And once you start reading incorrectly, it's hard to change one's mind.
You closed your own question by marking it as correct answer (which visibly was not). Don't expect many more answers. But check the identifier you passed to instantiateViewController and what class you have defined in storyboard for this Setting VC (it should be SettingUI). And remember: you should not unwrap an optional (controllerTwo) if you are not absolutely sure it cannot be nil. But you should test with if let controllerTwo { …
You marked the answer as correct, which means you have solved your problem… So little chance you get a quick answer now. In any case, you should have shown your present code, shown what you get and explain why it is not correct.
That is possible with the last solution I proposed. You hit the button, then image creation is made behind the scene and then you call for printing as described in the link.
Thanks. Of course, I was misreading the precedence operators (I was reading it as (self.isOn = newValue) ? .myTrue : .myFalse . And once you start reading incorrectly, it's hard to change one's mind.
You closed your own question by marking it as correct answer (which visibly was not). Don't expect many more answers. But check the identifier you passed to instantiateViewController and what class you have defined in storyboard for this Setting VC (it should be SettingUI). And remember: you should not unwrap an optional (controllerTwo) if you are not absolutely sure it cannot be nil. But you should test with if let controllerTwo { …
You marked the answer as correct, which means you have solved your problem… So little chance you get a quick answer now. In any case, you should have shown your present code, shown what you get and explain why it is not correct.
That is possible with the last solution I proposed. You hit the button, then image creation is made behind the scene and then you call for printing as described in the link.