Latest 0.0.3
Homepage https://github.com/mexiQQ/MXActivityViewController
License MIT
Platforms ios 7.0
Dependencies PureLayout
Authors

Effect


Features

  • 最多支持 3×8 个Activity
  • 自适应布局
  • icon title 自定义
  • 支持多个条形Button

Use

如下所示:

NSArray *images = @[
  @"Share_Sina",
  @"Share_WeChat",
  @"Share_WeChat_Moments",
  @"Share_QQ",
  @"Share_Evernote",
  @"Share_Pocket",
  @"Share_YoudaoNote",
  @"Share_Copylink",
  @"Share_Email",
  @"Share_Message",
  @"Share_Twitter",
  @"Share_Sina",
  @"Share_WeChat",
  @"Share_WeChat_Moments",
  @"Share_QQ",
  @"Share_Evernote",
  @"Share_Pocket",
  @"Share_YoudaoNote",
  @"Share_Copylink",
  @"Share_Email",
  @"Share_Message",
  @"Share_Twitter"
];

NSArray *titles = @[
  @"新浪微博",
  @"微信好友",
  @"朋友圈",
  @"QQ",
  @"印象笔记",
  @"Pocket",
  @"有道笔记",
  @"复制链接",
  @"电子邮件",
  @"信息",
  @"Twitter",
  @"新浪微博",
  @"微信好友",
  @"朋友圈",
  @"QQ",
  @"印象笔记",
  @"Pocket",
  @"有道笔记",
  @"复制链接",
  @"电子邮件",
  @"信息",
  @"Twitter"
];
[[MXUIActivityWindow shareInstance:images
title:titles
buttonTitle:@"举报"
activityActionBlock:^(int i) {
  NSLog(@"Activity id is %d", i);
}
buttonActionBlock:^{
  NSLog(@"it's  here");
}
cancelActionBlock:^{
  NSLog(@"it's there");
}] show];

Install

Cocoapods

pod 'MXActivityViewController', '~> 0.0.3'

Without Cocoapods

like the Demo

Dependency

  • purelayout ~> 2.0.5

License

  • MIT

Latest podspec

{
    "name": "MXActivityViewController",
    "version": "0.0.3",
    "summary": "iOS third UIActivityViewController",
    "homepage": "https://github.com/mexiQQ/MXActivityViewController",
    "license": "MIT",
    "authors": {
        "mexiqq": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/mexiQQ/MXActivityViewController.git",
        "tag": "0.0.3"
    },
    "source_files": [
        "Classes",
        "MXActivityViewController/*.{h,m}"
    ],
    "resources": "MXActivityViewController/images/*.png",
    "requires_arc": "",
    "dependencies": {
        "PureLayout": [
            "~> 2.0.5"
        ]
    }
}

Pin It on Pinterest

Share This