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
- Host: GitHub
- URL: https://github.com/gableroux/rotationlockintabbedviewchild
- Owner: GabLeRoux
- License: mit
- Created: 2017-08-22T18:04:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T19:12:17.000Z (almost 9 years ago)
- Last Synced: 2025-02-06T12:28:11.878Z (over 1 year ago)
- Topics: example, ios, objective-c, orientation
- Language: Objective-C
- Homepage: https://stackoverflow.com/questions/26357162/how-to-force-view-controller-orientation-in-ios-8
- Size: 122 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE.md
Awesome Lists containing this project
README
# RotationLockInTabbedViewChild
Solves the anoying issues with rotation lock.
## Explanation

### [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)