iphone - Custom UIView does not rotate when device orientation changes -


I have created a UIView that has two controls on it, a label and an activity indicator (spinning wheel) when syncing the device As this UIViewController needs to be delivered globally, I'm adding it to the app's financing launch event:

window.AddSubview (navigationController.View); Window.AddSubview (SyncSpinner.View); Window.MakeKeyAndVisible ();

I am overriding the ShouldAutoRotate event and returning the truth to allow rotation of the scene with the device. However, I have been unable to rotate this view. I have also tried to call the Atourat Event from Navigation. The controller's view needs autotet events, but it still does not rotate.

How do I create a very simple view of a label to use as a status dialog? Spinner in the middle, and will rotate it properly?

Thank you.

One such thing I'm glad I do not know why, but iffile is just new Sends autoratet messages to the controller.

There is a way around it, use this block of code to generate notifications and launch the end to send to the controller:

  [[UIDIS Current device] is starting to begin the device's instruction []]; [[NSNotificationCenter defaultCenter] addObserver: viewController Selector: @Selector (Change Orientation :) Name: UIDeviceOrientationDidChangeNotification Object: Zero];  

Comments