made fullscreen

This commit is contained in:
Andrew Stephan
2016-02-19 18:38:41 -05:00
parent 2157bd2107
commit c3540d4842
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ typedef enum : NSUInteger {
picker.colsInPortrait = 4; picker.colsInPortrait = 4;
picker.colsInLandscape = 6; picker.colsInLandscape = 6;
picker.minimumInteritemSpacing = 2.0; picker.minimumInteritemSpacing = 2.0;
picker.modalPresentationStyle = UIModalPresentationPopover; picker.modalPresentationStyle = UIModalPresentationFullScreen;
UIPopoverPresentationController *popPC = picker.popoverPresentationController; UIPopoverPresentationController *popPC = picker.popoverPresentationController;
popPC.permittedArrowDirections = UIPopoverArrowDirectionAny; popPC.permittedArrowDirections = UIPopoverArrowDirectionAny;
+8 -8
View File
@@ -14,14 +14,14 @@ ImagePicker.prototype.OutputType = {
BASE64_STRING: 1 BASE64_STRING: 1
}; };
ImagePicker.prototype.validateOutputType = function(options){ ImagePicker.prototype.validateOutputType = function(options) {
var outputType = options.outputType; var outputType = options.outputType;
if(outputType){ if (outputType) {
if(outputType !== this.OutputType.FILE_URI && outputType !== this.OutputType.BASE64_STRING){ 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'); 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; options.outputType = this.OutputType.FILE_URI;
} }
} }
}; };
/* /*