iOS 8 Rotation Methods Deprecation - Backwards Compatibility

iOS 8 Rotation Methods Deprecation - Backwards Compatibility

The rotation methods are deprecated in the iOS 8 SDK. This will have no effect at all on apps built with the iOS 7 SDK, even running in iOS 8 and probably several future versions of iOS.

As an example, the font property of UIButton has been deprecated since iOS 3.0 and is still available in iOS 7.0.

willRotateToInterfaceOrientation not called on iOS8

I finally managed to resolve my problem; here is what the issue was in case anyone else has the same problem.

My ReaderViewController was being presented from a class that had implemented viewWillTransitionToSize:withTransitionCoordinator:, so the deprecated methods on child view controllers weren't being called.

Also in that implementation it wasn't calling

[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]

and so the viewWillTransitionToSize:withTransitionCoordinator: method of all child view controllers wasn't being called either.

The fix was to add a call to

[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]

into the parent VC's viewWillTransitionToSize:withTransitionCoordinator: method, subclass ReaderViewController, then add a viewWillTransitionToSize:withTransitionCoordinator: to my subclass to call the appropriate methods in ReaderViewController.

Rotation issue with ios 8 for view which are added to windows

I have tried a lot of fixes... and its working with patch like

{
[self.window setBounds:temp];
[menu.view setFrame:CGRectMake(0, self.window.frame.size.height-50, self.window.frame.size.width, 50)];
[menu.view removeFromSuperview];
[self.window addSubview:menu.view];
[self.window makeKeyAndVisible];
}

and reseting angle to 0 degree for CGAffineTransformMakeRotation for all kind of device mode., for ios 8.

This is not a proper solution i know, but I don't have any alternate way so waiting for a good answer.

Why IS viewWillRotateToInterfaceOrientation being called in iOS 8?

If a method is deprecated that does not necessarily mean that the method will not be called. A feature can be deprecated because it has been superseded by some other functionality, and that may mean that it still works, just not reliably or in all cases.

Resizing a toolbar on rotate in iOS8

If you are using auto layout, you can set different height constraints in portrait and landscape, for example add a 32 height constraint for the toolbar in wCompact|hCompact mode, you will be able to see a 32 height toolbar in landscape mode, here is an Toolbar test example

setStatusBarOrientation deprecated,how to change the device orientation in ios10

It is to be believed that -[UIApplication statusBarOrientation] has been deprecated to support the use of UITraitCollection and size classes.

Also from apple docs

@property(readonly, nonatomic) UIInterfaceOrientation statusBarOrientation __TVOS_PROHIBITED;

// Explicit setting of the status bar orientation is more limited in iOS 6.0 and later.
@property(readwrite, nonatomic) UIInterfaceOrientation statusBarOrientation NS_DEPRECATED_IOS(2_0, 9_0,
"Explicit setting of the status bar orientation is more limited in iOS 6.0 and later") __TVOS_PROHIBITED;

Seems you cannot use the above code for the same purpose.

May be this link helps you Link to orientation



Related Topics



Leave a reply



Submit