Latest 0.0.2
Homepage https://github.com/theSkyOfJune/HHPopController
License MIT
Platforms ios 7.0, requires ARC
Authors

更好用的仿微信、QQ弹框控件

Demo Project

See HHPopControllerDemo/HHPopControllerDemo.xcodeproj

使用方法

HHPopItem *item1 = [HHPopItem itemWithImage:[UIImage imageNamed:@"ic_addvoucher_qrcode"] title:@"创建群聊"];
HHPopItem *item2 = [HHPopItem itemWithImage:[UIImage imageNamed:@"ic_addvoucher_cinema"] title:@"加好友/群"];
HHPopItem *item3 = [HHPopItem itemWithImage:[UIImage imageNamed:@"ic_addvoucher_input"] title:@"面对面快传"];
[HHPopController applyPopStyle:^(HHPopStyle *style) {

    style.borderColor = [UIColor cyanColor];
    style.borderWidth = 1.0f;
    style.itemTextColor = [UIColor whiteColor];
    style.dimColor = [UIColor colorWithWhite:0.1 alpha:0.3];
    style.itemBgColor = [UIColor colorWithWhite:0.3 alpha:1.0];
    ...
}];
[HHPopController popSourceView:btn popItems:@[item1, item2, item3] selectionHandler:^(NSInteger idx, HHPopItem *item) {
    NSLog(@"%@", item.title);
}];

安装

CocoaPods

  1. 在 Podfile 中添加 pod 'HHPopController'
  2. 执行 pod installpod update
  3. 导入 <HHPopController/HHPopController.h>。

手动安装

  1. 下载 HHPopController 文件夹内的所有内容。
  2. 将 HHPopController 内的源文件添加(拖放)到你的工程。
  3. 导入 HHPopController.h

系统要求

该项目最低支持 iOS 6.0Xcode 7.0

许可证

HHPopController 使用 MIT 许可证,详情见 LICENSE 文件。

Latest podspec

{
    "name": "HHPopController",
    "version": "0.0.2",
    "summary": "A HHPopController For iOS Development",
    "homepage": "https://github.com/theSkyOfJune/HHPopController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Li Yang": "https://github.com/theSkyOfJune"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/theSkyOfJune/HHPopController.git",
        "tag": "0.0.2"
    },
    "source_files": "HHPopController/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This