Giter Site home page Giter Site logo

tangshiping / kyasyncloadbubble Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kittenyang/kyasyncloadbubble

0.0 2.0 0.0 1.87 MB

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

License: MIT License

Objective-C 97.03% Ruby 1.21% C 0.88% Shell 0.88%

kyasyncloadbubble's Introduction

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

kyasyncloadbubble's People

Contributors

kittenyang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.