I noticed that even though the title label's text was set on iOS, at least in the code, no title was displayed.
Debugging a local build showed that the text setting code was never reached because the Titlelabel was null.
The TitleLabel is get only, so I coculdn't create my own Title Label.
However, setting TOCropViewController.Title is written in such a way, that it creates a label only when necesarry.
A quote from TOCropVIewController: "If there is no title text, inset the top of the content as high as possible"
TOCropViewController tries to take up as much space on the screen as possible, so when no Title text is set, no label is created in order to maximize space.
My code change replaces
I noticed that even though the title label's text was set on iOS, at least in the code, no title was displayed. Debugging a local build showed that the text setting code was never reached because the Titlelabel was null. The TitleLabel is get only, so I coculdn't create my own Title Label. However, setting TOCropViewController.Title is written in such a way, that it creates a label only when necesarry. A quote from TOCropVIewController: "If there is no title text, inset the top of the content as high as possible"
TOCropViewController tries to take up as much space on the screen as possible, so when no Title text is set, no label is created in order to maximize space. My code change replaces
With:
as this is all that is needed to make the title display on screen.