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

View File

@@ -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;

View File

@@ -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;
}
}
};
/*