Latest 1.0.5
Homepage https://github.com/ray00178/RZAlbum
License MIT
Platforms ios 9.0
Frameworks UIKit, Photos
Authors

RZAlbum

Version
License
Platform

The RZAlbum for iOS to select the photo library. And usage:

  • Support Single choice、Multiple choice、Preview、Folder switch and take pictures.  
  • According to your project color, Setting ur pickColor、navigationBar_tintColor、navigationBar_barTintColor.
  • According to your preferences / needs, Show the number of fields and select the number of restrictions.
  • Perfect support for iphone_X

Screenshots iPhone_X

RZAlbum

Screenshots iPhone_8

RZAlbum

Installation

RZAlbum is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RZAlbum', '~> 1.0'

Usage

1.Open ur Info.plist and add the following permissions.

<key>NSCameraUsageDescription</key>
<string>Please allow access to your camera</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Please allow access to your album</string>

2.Use RZAlbum. There are many ways to call

/**
  * @param appName            : (required)
  * @param tintColor          : (choose)   (default:#000000)     
  * @param barTintColor       : (choose)   (default:#fefefe) 
  * @param spanCount          : (choose)   (default:3)
  * @param limitCount         : (choose)   (default:5)
  * @param duration           : (choose)   (default:2s)
  * @param message            : (choose)   (default:Choose the number of sheets can not exceed limitCount sheets!)
  * @param titleColor         : (choose)   (default:#000000)
  * @param pickColor          : (choose)   (default:#ffc107)
  * @param showCamera         : (choose)   (default:true)
  * @param isCrop             : (choose)   (default:false)
  * @param isLightStatusStyle : (choose)   (default:false)
  * @param start              : (required)
  */
RZAlbum.appName("RZAlbum")
    .start(self, delegate: self)
/**
  * Or Like this
  */
RZAlbum.appName("RZAlbum")
    .tintColor(.orange)
    .barTintColor(.black)
    .spanCount(4)
    .limitCount(10)
    .duration(3)
    .message("Over")
    .titleColor(.orange)
    .pickColor(.blue)
    .showCamera(false)
    .isCrop(true)
    .isLightStatusStyle(true)
    .start(self, delegate: self)

3.Extension RZAlbumDelegate

extension ViewController: RZAlbumDelegate {
    func albumDidSelected(_ photos: [UIImage]) {
        print("albumDidSelected:(photos)")
    }

    func albumDidCancel() {
        print("albumDidCancel")
    }
}

License

MIT License

Copyright (c) 2017 RZAlbum of copyright Ray

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Latest podspec

{
    "name": "RZAlbum",
    "version": "1.0.5",
    "summary": "It's very easy to select photo for iOS.",
    "homepage": "https://github.com/ray00178/RZAlbum",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ray": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ray00178/RZAlbum.git",
        "tag": "1.0.5"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "RZAlbum/Classes/**/*.{swift,xib}",
    "resource_bundles": {
        "RZAlbum": [
            "RZAlbum/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "Photos"
    ]
}

Pin It on Pinterest

Share This