Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mixdesign/AAShareBubbles
Animated Social share buttons control for iOS
https://github.com/mixdesign/AAShareBubbles
Last synced: 25 days ago
JSON representation
Animated Social share buttons control for iOS
- Host: GitHub
- URL: https://github.com/mixdesign/AAShareBubbles
- Owner: mixdesign
- License: other
- Created: 2012-12-09T15:57:59.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T17:41:14.000Z (almost 7 years ago)
- Last Synced: 2024-03-14T14:02:13.105Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 188 KB
- Stars: 393
- Watchers: 25
- Forks: 80
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-made-in-kz - AAShareBubbles
README
Intro
==============>Swift version:
>https://github.com/takecian/SwiftShareBubblesAnimated Social share buttons control.
Supported buttons:
Facebook, Twitter, Google+, Tumblr, Vkontakte (vk.com), LinkedIn, Pinterest, Youtube, Vimeo, Reddit, Instagram, Whatsapp, E-mail, Add to favoritesAlso supports custom buttons.
**Demo video:**
http://www.youtube.com/watch?v=0yvl4_db1F4
Installation
------Two ways:
1. Just drag n drop **AAShareBubbles** folder into your xcode project.
2. **CocoaPods:**
```ruby
pod 'AAShareBubbles'
```
Usage:
------
```objective-c
#import "AAShareBubbles.h"
```
```objective-c
AAShareBubbles *shareBubbles = [[AAShareBubbles alloc] initWithPoint:CGPointMake(100, 100)
radius:100
inView:self.view];
shareBubbles.delegate = self;
shareBubbles.bubbleRadius = 45; // Default is 40
shareBubbles.showFacebookBubble = YES;
shareBubbles.showTwitterBubble = YES;
shareBubbles.showMailBubble = YES;
shareBubbles.showGooglePlusBubble = YES;
shareBubbles.showTumblrBubble = YES;
shareBubbles.showVkBubble = YES;// add custom buttons -- buttonId for custom buttons MUST be greater than or equal to 100
[shareBubbles addCustomButtonWithIcon:[UIImage imageNamed:@"custom-icon"]
backgroundColor:[UIColor greenColor]
andButtonId:100];[shareBubbles show];
// Use another initialization method to create share buttons on UIWindow instance (at the center)
AAShareBubbles *shareBubbles = [[AAShareBubbles alloc] initCenteredInWindowWithRadius:100];
...
````
Delegate
------
```objective-c
-(void)aaShareBubbles:(AAShareBubbles *)shareBubbles tappedBubbleWithType:(AAShareBubbleType)bubbleType
{
switch (bubbleType) {
case AAShareBubbleTypeFacebook:
NSLog(@"Facebook");
break;
case AAShareBubbleTypeTwitter:
NSLog(@"Twitter");
break;
case AAShareBubbleTypeMail:
NSLog(@"Email");
break;
case AAShareBubbleTypeGooglePlus:
NSLog(@"Google+");
break;
case AAShareBubbleTypeTumblr:
NSLog(@"Tumblr");
break;
case AAShareBubbleTypeVk:
NSLog(@"Vkontakte (vk.com)");
break;
case 100:
// custom buttons have type >= 100
NSLog(@"Custom Button With Type 100");
break;
default:
break;
}
}-(void)aaShareBubblesDidHide:(AAShareBubbles *)bubbles {
NSLog(@"All Bubbles hidden");
}```
Requirements:
------------
`ARC`, `iOS 5+`, `Xcode 4+`Todo:
-------
- Add more social buttons.
- Add opportunity to show bubbles in specified order.