An open API service indexing awesome lists of open source software.

https://github.com/gableroux/rotationlockintabbedviewchild

📱 Example project for locking orientation in a child view of a UITabBarController
https://github.com/gableroux/rotationlockintabbedviewchild

example ios objective-c orientation

Last synced: about 1 year ago
JSON representation

📱 Example project for locking orientation in a child view of a UITabBarController

Awesome Lists containing this project

README

          

# RotationLockInTabbedViewChild

Solves the anoying issues with rotation lock.

## Explanation

![Explanation](explanation.png)

### [RootViewController](RotationLockInTabbedViewChild/RootViewController.m)

Determines how next rotation will occure

### [PortraitUIViewController](RotationLockInTabbedViewChild/PortraitUIViewController.m)

Sets `nextOrientationMask` to Portrait on `viewDidAppear` and asks parent to reset the value on `viewDidDisappear`

### [SecondViewController](RotationLockInTabbedViewChild/SecondViewController.h)

Extends [PortraitUIViewController](RotationLockInTabbedViewChild/PortraitUIViewController.m) and nothing more

## License

[MIT](LICENSE.md) © [Gabriel Le Breton](https://gableroux.com)