Latest0.1.0
Homepagehttps://github.com/recruit-lifestyle/RandomImageView
LicenseMIT
Platformsios 8.0, requires ARC
Authors

Cocoapods Compatible

Swift subclass of the UIView.

Screenshot

RandomImageView

Requirements

  • iOS 8.0+
  • Xcode 6.1

Installation

To integrate RandomImageView into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'RandomImageView'

Then, run the following command:

$ pod install

Usage

There is a need to set up widthCount and heightCount property of the view.
The widthCount and heightCount will change to Horizonal and Vertical size one side of images in the view.

  1. Create a new UIView in your storyboard or nib.

  2. Set the class of the UIView to RandomImageView in your Storyboard or nib.

  3. Set widthCount and heightCount for the view.

  4. call show method at the timing you want to call.

Example

var images = [
  UIImage(named: "image1.jpg")!,
  UIImage(named: "image2.jpg")!,
  UIImage(named: "image3.jpg")!
]

randomImageView = RandomImageView(frame: self.view.frame, images: images)
self.view.addSubview(randomImageView)
randomImageView.show(4, heightCount: 7)

Credits

RandomImageView is owned and maintained by RECRUIT LIFESTYLE CO., LTD.

RandomImageView was originally created by Narimasa Iwabuchi

License

Copyright 2015 RECRUIT LIFESTYLE CO., LTD.

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

   http://www.apache.org/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.

Latest podspec

{
    "name": "RandomImageView",
    "version": "0.1.0",
    "summary": "Swift subclass of the UIView.",
    "description": "* show images on the random.n* set images to this view.",
    "homepage": "https://github.com/recruit-lifestyle/RandomImageView",
    "license": "MIT",
    "authors": {
        "Nari": "[email protected]"
    },
    "source": {
        "git": "https://github.com/recruit-lifestyle/RandomImageView.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/Fye_design",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "RandomImageView": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This