Code Monkey home page Code Monkey logo

tymactivityindicatorview's People

Contributors

yimingtang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tymactivityindicatorview's Issues

swift 2.2 + cocoapods v1 + initialize = crash

when using use_frameworks! in the Podfile - I believe the images are failing to return.

screen shot 2016-05-15 at 5 32 17 pm

I'm using the TYMActivityIndicatorView with swift / pods.

pod 'TYMActivityIndicatorView', '~> 0.3.3'

  • (void)initialize {
    if (self == [TYMActivityIndicatorView class]) {
    TYMActivityIndicatorView *appearance = [TYMActivityIndicatorView appearance];
    [appearance setClockwise:YES];
    [appearance setHidesWhenStopped:NO];
    [appearance setFullRotationDuration:1.0];
    [appearance setMinProgressUnit:0.01f];
    [appearance setBackgroundImage:[UIImage imageNamed:@"TYMActivityIndicatorView.bundle/background-normal"] forActivityIndicatorStyle:TYMActivityIndicatorViewStyleNormal];

I added some further checks for nil to get around this.

  • (void)setBackgroundImage:(UIImage *)backgroundImage forActivityIndicatorStyle:(TYMActivityIndicatorViewStyle)style {

    if (backgroundImage != nil){
    [self.backgroundImageStorage setObject:backgroundImage forKey:@(style)];
    }

}

  • (void)setBackgroundImage:(UIImage *)backgroundImage forActivityIndicatorStyle:(TYMActivityIndicatorViewStyle)style {

    if (backgroundImage != nil){
    [self.backgroundImageStorage setObject:backgroundImage forKey:@(style)];
    }

}

  • (UIImage *)backgroundImageForActivityIndicatorStyle:(TYMActivityIndicatorViewStyle)style {
    UIImage *backgroundImage = [self.backgroundImageStorage objectForKey:@(style)];
    if (!backgroundImage) {
    backgroundImage = [[[self class] appearance] backgroundImageForActivityIndicatorStyle:style];
    }
    return backgroundImage;
    }
  • (void)setSpinnerImage:(UIImage *)spinnerImage forActivityIndicatorStyle:(TYMActivityIndicatorViewStyle)style {
    if(spinnerImage != nil){
    [self.spinnerImageStorage setObject:spinnerImage forKey:@(style)];
    }

}

App getting crash in iOS 7.

App getting crash in iOS 7.
setClockwise, setHidesWhenStopped those setter methods crashing
Example app also getting crashing.

Crash report.
TYMActivityIndicatorView[10581:607] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* Illegal property type, c for appearance setter, _installAppearanceSwizzlesForSetter:'

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.