Skip to content

Open source alternative to UIActivityViewController, highly customizable and compatible with iOS 5.0.

License

Notifications You must be signed in to change notification settings

RazielSun/REActivityViewController

 
 

Repository files navigation

REActivityViewController

Open source alternative to UIActivityViewController, highly customizable and compatible with iOS 5.0. It is fork of original pod REActivityViewController. It allows to create custom activites with ease, you control their apperance and behavior and no longer restricted to single-color icons as with the default UIActivity.

REActivityViewController Screenshot

Without standart activities (Use only for create custom)

Requirements

  • Xcode 4.5 or higher
  • Apple LLVM compiler
  • iOS 5.0 or higher
  • ARC

Installation

Edit your Podfile and add REActivityViewController:

$ edit Podfile
platform :ios, '5.0'
pod 'REActivityViewController', :git => 'https://github.com/RazielSun/REActivityViewController.git'

Install into your Xcode project:

$ pod install

Add #include "REActivityViewController.h" to the top of classes that will use it.

Manual installation

REActivityViewController needs to be linked with the following frameworks:

  • QuartzCore

Remove all dependencies. Use only for custom activity.

Customization

All views are exposed for your customization. Say, you want to change controller background and customize cancel button, here is how you would do it:

REActivityViewController *activityViewController = [[REActivityViewController alloc] initWithViewController:self activities:activities];

activityViewController.activityView.backgroundImageView.image = [UIImage imageNamed:@"My_Cool_Background"];
[activityViewController.activityView.cancelButton setBackgroundImage:[UIImage imageNamed:@"My_Cool_Button"] forState:UIControlStateNormal];

Your custom activity icons must be 118x118 pixels and should include gloss, rounded corners and shadows. Easy way to make them:

  1. Open your 114x114 icon with rounded corners in Photoshop (you can convert your square icon using template from http://appicontemplate.com).
  2. Adjust canvas size to be 118x118, so the top part of the icon touches top part of the canvas.
  3. Add drop shadow to the icon layer: angle 90, opacity 40%, distance 2px, size 2px.

Original Contact

Roman Efimov

License

REActivityViewController is available under the MIT license.

Copyright © 2013 Roman Efimov.

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.

About

Open source alternative to UIActivityViewController, highly customizable and compatible with iOS 5.0.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 91.2%
  • M 7.1%
  • C 1.3%
  • Other 0.4%