欢迎光临
我们一直在努力

HcdPopMenu 一个类似新浪微博的PopMenu

建站超值云服务器,限时71元/月

HcdPopMenu 一个类似新浪微博的PopMenu

项目介绍:

Requirements

  • Xcode 6 or higher
  • iOS 7.0 or higher
  • ARC


Installation
Manual Install

All you need to do is drop HcdPopMenu files into your project, and add #include "HcdPopMenu.h" to the top of classes that will use it.

Cocoapods

Change to the directory of your Xcode project:

$ cd /path/to/YourProject$ touch Podfile$ edit Podfile

Edit your Podfile and add HcdPopMenu:

pod ‘HcdPopMenu’

Install into your Xcode project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

$ open YourProject.xcworkspace

Please note that if your installation fails, it may be because you are installing with a version of Git lower than CocoaPods is expecting. Before you pod install, you should run pod setup.

Example Usage
[Objective-C] 查看源文件 复制代码

NSArray *array = @[@{kHcdPopMenuItemAttributeTitle : @"海量投单", kHcdPopMenuItemAttributeIconImageName : @"toudan_icon_hailiangtoudan"},
                              @{kHcdPopMenuItemAttributeTitle : @"定向投单", kHcdPopMenuItemAttributeIconImageName : @"toudan_icon_dingxiangtoudan"}];

[HcdPopMenuView createPopmenuItems:array closeImageName: @"center_exit" backgroundImageUrl:@"http://img3.duitang.com/uploads/item/201411/17/20141117102333_rwHMH.thumb.700_0.jpeg" tipStr:@"海量投单是所有人都可以看到的投单,定向投单则是针对有目的性的投单(如企业投单)" completionBlock:^(NSInteger index) {

}];

DEMO 直接下载:

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » HcdPopMenu 一个类似新浪微博的PopMenu
分享到: 更多 (0)