mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-04-16 00:02:54 +08:00
made fullscreen
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+3
-3
@@ -14,10 +14,10 @@ ImagePicker.prototype.OutputType = {
|
||||
BASE64_STRING: 1
|
||||
};
|
||||
|
||||
ImagePicker.prototype.validateOutputType = function(options){
|
||||
ImagePicker.prototype.validateOutputType = function(options) {
|
||||
var outputType = options.outputType;
|
||||
if(outputType){
|
||||
if(outputType !== this.OutputType.FILE_URI && outputType !== this.OutputType.BASE64_STRING){
|
||||
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