iphone - Key window doesn't rotate -


I have a UIViewTable with the navigation bar when I read data, I display the UIViewController with ActivityIndicator at the top of the table. The problem I am is that when I rotate the device, then this top view is not rotating, I do not know why? :( In this way I add the top view with Activity indicator:

  UIView * view = [[UIApplication shared application] key window]; [addSubview: viewWithLoader.view view];   

is how do I delete it:

  [viewWithLoader.view removeFromSuperview];   

This top view (ActivityIndicator ): The method must be:

  - (BOOL) must be the atorotettoInterfaceAuthentication (UINPreference Orientation) Interface Orientation {return yes;}    

It happened to me that I had a top bar that used the status bar Changed, so I thought it would be good to actually add it as a sub-view of a main window. But as a result of this, you are experiencing results.

You have 2 options

  1. Which Mr. Boss T Shirshdrishy should add it will pull it off / on the need to take care of rotating or rotation so that the correct orientation.

  2. Make a subview of one of those scenes that top view the Autorotating.

    Both are really easy to implement but I could not find any. 2 is more visually attractive to the user.

Comments