I’d like to show a modal about view, with some text and just a toolbar into which there would be a simple button that closes the view.
The text, the toolbar and its button are into a xib.
Is there a way to show this view (modally) and being able to dismiss it when “OK” is touched, without having to write a custom controller (AboutBoxController) to handle it ?
If it’s possible, could you show me what code you would use to do this ?
Writing a controller that just dismisses itself when OK is touched is effortless, so I don’t really see the point. It would probably be faster to just write that controller than writing this question.
I guess if you really don’t want to write that controller, you could let some other controller respond to the button action. However, you’d be writing at least the same amount of code and you’d be doing it in the wrong place.