KO
|
EN
gitlite โ search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
Phonegap-Orientation-iOS
โ 18
Open GitHub โ
phonegap-orientation-ios
Download README (.md)
Explore Similar Repositories
rison
:
Rison encoder and decoder for the Jackson streaming JSON processor
vim-diff-toggle
:
๐ Vim plugin to speed up editing diff files
js2e
:
Tutorial files for JavaScript & jQuery: The Missing Manaul
shoebill-api
:
Shoebill-api is one main part of the shoebill project.
chip-8
:
A CHIP-8 emulator in Go.
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
Phonegap-Orientation-iOS
?
Download (.md)
Phonegap-Orientation-iOS ======================== ##Plugin for enabling/disabling device orientation ####In Xcode project Place Orientation.h & Orientation.m in to plugins folder Add into Appdelegate.h ... @interface AppDelegate : PhoneGapDelegate { NSString* invokeString; } - @property (copy) NSString* invokeString; - (void)setOrientation:(NSArray *)arguments; @end Add into AppDelegate.m ... - (void) dealloc { [super dealloc]; } - (void)setOrientation:(NSArray *)arguments { self.viewController.supportedOrientations = arguments; } @end Add field into Supporting Files / <PROJECT>.plist name: orientation (value: Orientation) ###Usage Include OrienationPlugin.js in index.html Params in object: * pp - Portrait * pd - Portrait upside down * ll - Landscape left * lr - Landscape right ####Examples (in javascript) Portrait only window.plugins.orientation.setAllowed([{pp:true, pd:false, ll:false, lr:false}]); All, except Portrait upside down window.plugins.orientation.setAllowed([{pp:true, pd:false, ll:true, lr:true}]);