Latest 1.0.2
Homepage https://github.com/KittenYang/KYAsyncLoadBubble
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Frameworks Foundation, UIKit
Authors

KYAsyncLoadBubble

CocoaPods Version
License
Platform

asyncloadbubble

Intro

A bubble which can async-load web content without interrupt your current process.

Installation

pod 'KYAsyncLoadBubble', '~> 1.0.2'

How to use


- (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

#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…

Latest podspec

{
    "name": "KYAsyncLoadBubble",
    "version": "1.0.2",
    "summary": "A floating bubble which ca async-load web content",
    "description": "                   A floating bubble which ca async-load web content. u540eu53f0u52a0u8f7du7f51u9875u60acu6d6eu7403n",
    "homepage": "https://github.com/KittenYang/KYAsyncLoadBubble",
    "license": "MIT",
    "authors": {
        "KittenYang": "[email protected].com"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/KittenYang/KYAsyncLoadBubble.git",
        "tag": "1.0.2"
    },
    "source_files": "Classes/**/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true,
    "dependencies": {
        "AFNetworking": [
            "~> 2.0"
        ]
    }
}

Pin It on Pinterest

Share This