https://github.com/kittenyang/kyasyncloadbubble
A bubble which can async-load web content without interrupt your current process.
https://github.com/kittenyang/kyasyncloadbubble
Last synced: 2 months ago
JSON representation
A bubble which can async-load web content without interrupt your current process.
- Host: GitHub
- URL: https://github.com/kittenyang/kyasyncloadbubble
- Owner: KittenYang
- License: mit
- Created: 2015-07-01T14:26:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-30T19:16:08.000Z (over 9 years ago)
- Last Synced: 2025-03-20T13:25:47.360Z (2 months ago)
- Language: Objective-C
- Size: 1.89 MB
- Stars: 111
- Watchers: 6
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()



![]()
##Intro
A bubble which can async-load web content without interrupt your current process.
##Installation
`pod 'KYAsyncLoadBubble', '~> 1.0.2'`
##How to use
```objc- (IBAction)addBubble:(id)sender {
for (UIView *subview in self.view.subviews) {
if ([subview isKindOfClass:[KYAsyncLoadBubble class]]) {
return;
}
}
_bubble = [KYAsyncLoadBubble new];
_bubble.bubbleColor = [UIColor colorWithRed:0.0 green:0.487 blue:1.0 alpha:1.0];
_bubble.progress = 0.0;
_bubble.bubbleText = @"网页";
_bubble.delegate = self;
_bubble.webUrl = @"http://kittenyang.com/deformationandgooey/";
[self.view addSubview:_bubble];
}```
###Then,you need to immplement the protocol method```objc
#pragma mark -- TapBubbleDelegate
-(void)bubbleDidTapped:(NSString *)webContent{
WebViewController *webVc = [[WebViewController alloc]initWithURL:_bubble.webUrl];
webVc.webContent = webContent;
[self.navigationController pushViewController:webVc animated:YES];
}```
## *See more information from the demo project.*
~~***HOLD ON A SECOND...***~~