Latest 0.1.1
Homepage https://github.com/jiehu5114/HJShareMenu
License MIT
Platforms ios 7.0, requires ARC
Authors

iOS7 and later

Installation

CocoaPods is the recommended way of installation, as this avoids including any binary files into your project.

CocoaPods (recommended)

HJShareMenu is available through CocoaPods. To install
it, simply add the following line to your Podfile and run pod install.

pod "HJShareMenu"

Manually

Clone(git clone [email protected]:jiehu5114/HJShareMenu.git) or Download HJShareMenu, then drag HJShareMenu subdirectory to your Project.

Usage

In your Project,add #import <HJShareMenu/HJShareMenu.h> statement and implement HJShareMenuDelegate. As shown below:

HJShareMenuItem *mail = [[HJShareMenuItem alloc] init];
mail.menuItemTitle = kHJShareMenuLocalizedStrings(@"Mail");
mail.menuItemImage = [UIImage imageWithContentsOfFile:[kHJShareMenuBundlePath stringByAppendingPathComponent:@"shareMail.png"]];

HJShareMenuItem *message = [[HJShareMenuItem alloc] init];
message.menuItemTitle = kHJShareMenuLocalizedStrings(@"Message");
message.menuItemImage = [UIImage imageWithContentsOfFile:[kHJShareMenuBundlePath stringByAppendingPathComponent:@"shareMessage.png"]];

HJShareMenuItem *photos = [[HJShareMenuItem alloc] init];
photos.menuItemTitle = kHJShareMenuLocalizedStrings(@"Save to Camera Roll");
photos.menuItemImage = [UIImage imageWithContentsOfFile:[kHJShareMenuBundlePath stringByAppendingPathComponent:@"sharePhotos.png"]];

HJShareMenuItem *safari = [[HJShareMenuItem alloc] init];
safari.menuItemTitle = kHJShareMenuLocalizedStrings(@"Open in Safari");
safari.menuItemImage = [UIImage imageWithContentsOfFile:[kHJShareMenuBundlePath stringByAppendingPathComponent:@"shareSafari.png"]];

HJShareMenu *shareMenu = [[HJShareMenu alloc] initWithMenuItems:[NSMutableArray arrayWithObjects:mail,message,photos,safari,nil]];
shareMenu.delegate = self;
[shareMenu showMenu];

Requirements

  • Deployment Target iOS7.0+
  • ARC
  • AutoLayout

Contribute

Please post any issues and ideas in the GitHub issue tracker and feel free to submit pull request with fixes and improvements. Keep in mind; a good pull request is small, well explained and should benifit most of the users.

License

HJShareMenu is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "HJShareMenu",
    "version": "0.1.1",
    "summary": "A Share Menu",
    "homepage": "https://github.com/jiehu5114/HJShareMenu",
    "license": "MIT",
    "authors": {
        "hujie": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jiehu5114/HJShareMenu.git",
        "tag": "0.1.1"
    },
    "social_media_url": "http://jiehu5114.gitcafe.io/blog/archives/",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "HJShareMenu",
    "public_header_files": "HJShareMenu/**/*.h",
    "resources": [
        "HJShareMenu/Resources/HJShareMenu.bundle",
        "HJShareMenu/Resources/*.lproj"
    ]
}

Pin It on Pinterest

Share This