GithubHelp home page GithubHelp logo

evaluatestardemo's Introduction

EvaluateStarDemo

效果图

image

//星星展示

self.showStarView = [[ShowStarView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2-[self Suit:35], [self Suit:125], [self Suit:70], [self Suit:20])];

self.showStarView.level = 0;

[self.view addSubview:self.showStarView];

//星星评价

self.starView = [[StarView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2-[self Suit:150], [self Suit:200], [self Suit:300], [self Suit:100])];

__weak typeof(self) weakSelf = self;

self.starView.valueChangeBlock = ^(CGFloat value) {

NSLog(@"score = %.1lf", value);

scoreLabel.text = [NSString stringWithFormat:@"%.1lf", value];

weakSelf.showStarView.level = value;

};

[self.view addSubview:self.starView];

evaluatestardemo's People

Contributors

cesaradu avatar

Stargazers

 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.