打开相机和库的横向模式

时间:2016-03-10 15:10:51

标签: ios swift

如何以横向模式打开照片和相机库:

我现在正在使用此代码以纵向打开:

@IBAction func openLibrary(sender: AnyObject) {        ///accion del boton Library

    imagePicker.allowsEditing = false
    imagePicker.sourceType = .PhotoLibrary

    presentViewController(imagePicker, animated:true, completion: nil)

}

@IBAction func openCamera(sender: AnyObject) {        ///accion del boton Camara


    imagePicker.allowsEditing = false
    imagePicker.sourceType = .Camera



    presentViewController(imagePicker, animated:true, completion: nil)

}

0 个答案:

没有答案