MDSoftGallery 1.0.0

MDSoftGallery 1.0.0

Maedi Laziman 维护。



  • Maedi Laziman

关于

innosoft-mdgallery 旨在帮助实现一个易于使用的从相册和相机中获取图片的实现。


           

要求

  • iOS 11.6
  • XCode 13.6
  • Swift 4.0+

安装

CocoaPods

pod 'MDSoftGallery', '~> 1.0'
or if above not run properly please use this

pod 'MDSoftGallery', :git => 'https://github.com/maedilaziman/innosoft-mdgallery.git'

手动

只需从MDSoftGallery子文件夹中将文件添加到您的项目中。

设置

需要扩展文件

extension ViewController: CameraPhoto_Communicate{     func getAllPhotos(images: [UIImage]) {         print("get_all_photos = \(images)")     } }

用法

声明CameraPhoto()并像以下示例那样调用showPhotoGalleryAndCamera函数。

import UIKit import MDSoftGallery

extension ViewController: CameraPhoto_Communicate {     func getAllPhotos(images: [UIImage]) {         print("get_all_photos = \(images)")     } }

class ViewController: UIViewController {     override func viewDidLoad() {         super.viewDidLoad()         // Do any additional setup after loading the view.     }

    @IBAction func actOpenGallery(_ sender: Any) {         let camPhoto = CameraPhoto()         camPhoto.showPhotoGalleryAndCamera(comm: self)     } }


就这些了!

许可协议

Copyright 2020 Maedi Laziman

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://apache.ac.cn/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.