Skip to content

recruit-lifestyle/RandomImageView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#RandomImageView 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.