In the simulator, select
Hardware → Rotate Right.
We will need the
notification
center
to play a video.
See
Notification
Programming.
Here is a simple example of how to use the center.
The center sends the
setNeedsDisplay
message to a
view
whenever the
orientation
of the
device
changes.
The
view
reacts by displaying a message:
“portrait”,
“landscape”,
etc.
When we have a
view controller,
we’ll be able to make the text run the right way.
main.m
NoteAppDelegate
View
application:didFinishLaunchingWithOptions:
before we create the view.
How can we correct this?