Rotating TouchDrawView when device is rotated


#1

Hi,
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?

#2

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.


#3

Ah, Thanks.