mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-01-26 00:00:16 +08:00
made fullscreen
This commit is contained in:
@@ -54,7 +54,7 @@ typedef enum : NSUInteger {
|
||||
picker.colsInPortrait = 4;
|
||||
picker.colsInLandscape = 6;
|
||||
picker.minimumInteritemSpacing = 2.0;
|
||||
picker.modalPresentationStyle = UIModalPresentationPopover;
|
||||
picker.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
|
||||
UIPopoverPresentationController *popPC = picker.popoverPresentationController;
|
||||
popPC.permittedArrowDirections = UIPopoverArrowDirectionAny;
|
||||
|
||||
@@ -14,14 +14,14 @@ ImagePicker.prototype.OutputType = {
|
||||
BASE64_STRING: 1
|
||||
};
|
||||
|
||||
ImagePicker.prototype.validateOutputType = function(options){
|
||||
var outputType = options.outputType;
|
||||
if(outputType){
|
||||
if(outputType !== this.OutputType.FILE_URI && outputType !== this.OutputType.BASE64_STRING){
|
||||
console.log('Invalid output type option entered. Defaulting to FILE_URI. Please use window.imagePicker.OutputType.FILE_URI or window.imagePicker.OutputType.BASE64_STRING');
|
||||
options.outputType = this.OutputType.FILE_URI;
|
||||
}
|
||||
}
|
||||
ImagePicker.prototype.validateOutputType = function(options) {
|
||||
var outputType = options.outputType;
|
||||
if (outputType) {
|
||||
if (outputType !== this.OutputType.FILE_URI && outputType !== this.OutputType.BASE64_STRING) {
|
||||
console.log('Invalid output type option entered. Defaulting to FILE_URI. Please use window.imagePicker.OutputType.FILE_URI or window.imagePicker.OutputType.BASE64_STRING');
|
||||
options.outputType = this.OutputType.FILE_URI;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user