Rotating TouchDrawView when device is rotated


Hope anyone can help me along with this.
I want the TouchDrawView to rotate when the device is rotated.
Adding - shouldAutorotateToInterfaceOrientation: - to TouchDrawView does not work.

  • Do I need a TouchDrawViewController?
  • How do I initialize the TouchDrawView in TouchDrawViewController?


Yup, you’ll need a view controller whose view is the TouchDrawView. You’ll have to implement the shouldAutorotate method to return YES.

Additionally, you’ll have to set up the appropriate autoresize mask for the TouchDrawView instance.


Ah, Thanks.