Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xhzengAIB/PopMenu
PopMenu is pop animation menu inspired by Sina weibo / NetEase app.
https://github.com/xhzengAIB/PopMenu
Last synced: 3 months ago
JSON representation
PopMenu is pop animation menu inspired by Sina weibo / NetEase app.
- Host: GitHub
- URL: https://github.com/xhzengAIB/PopMenu
- Owner: xhzengAIB
- License: mit
- Created: 2015-01-11T07:46:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T11:30:08.000Z (over 8 years ago)
- Last Synced: 2024-07-23T05:04:31.952Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 1000 KB
- Stars: 896
- Watchers: 26
- Forks: 206
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - PopMenu - PopMenu is pop animation menu inspired by Sina weibo / NetEase app. (UI / Menu)
- awesome-ios-star - PopMenu - PopMenu is pop animation menu inspired by Sina weibo / NetEase app. (UI / Menu)
README
PopMenu
====================![License](https://img.shields.io/cocoapods/l/TWPhotoPicker.svg)
![Platform](https://img.shields.io/cocoapods/p/TWPhotoPicker.svg)PopMenu is pop animation menu inspired by Sina weibo / NetEase app.
## Screenshots
![image](https://github.com/xhzengAIB/LearnEnglish/raw/master/Screenshots/XHSinaMenuViewExample.gif)## Installation
#### CocoaPods
With [CocoaPods](http://cocoapods.org/), add this line to your `Podfile`.
```
pod 'PopMenu'
```and run `pod install`, then you're all done!
#### Manually
1. Download and drop ```/PopMenu```folder in your project.
2. Congratulations!## How to use
```objc
NSMutableArray *items = [[NSMutableArray alloc] initWithCapacity:3];
MenuItem *menuItem = [[MenuItem alloc] initWithTitle:@"Flickr" iconName:@"post_type_bubble_flickr" glowColor:[UIColor grayColor] index:0];
[items addObject:menuItem];
menuItem = [[MenuItem alloc] initWithTitle:@"Googleplus" iconName:@"post_type_bubble_googleplus" glowColor:[UIColor colorWithRed:0.000 green:0.840 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];
menuItem = [[MenuItem alloc] initWithTitle:@"Instagram" iconName:@"post_type_bubble_instagram" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];
menuItem = [[MenuItem alloc] initWithTitle:@"Twitter" iconName:@"post_type_bubble_twitter" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];
menuItem = [[MenuItem alloc] initWithTitle:@"Youtube" iconName:@"post_type_bubble_youtube" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];
menuItem = [[MenuItem alloc] initWithTitle:@"Facebook" iconName:@"post_type_bubble_facebook" glowColor:[UIColor colorWithRed:0.687 green:0.000 blue:0.000 alpha:1.000] index:0];
[items addObject:menuItem];
PopMenu *popMenu = [[PopMenu alloc] initWithFrame:self.view.bounds items:items];
popMenu.menuAnimationType = kPopMenuAnimationTypeNetEase; // kPopMenuAnimationTypeSina
popMenu.perRowItemCount = 3; // or 2
[popMenu showMenuAtView:self.view];```
## Requirements
* iOS 7.0+
* ARC## License
PopMenu is available under the MIT license, see the LICENSE file for more information.