Coder Social home page Coder Social logo

dyrateview's Issues

DYRateViewDelegate not working

Hello. i using your class in my app. all showing on the screen but if i clicking at the Star nothing not outputted.
this is the method:

#pragma mark - DYRateViewDelegate

- (void)changedToNewRate:(NSNumber *)rate {
NSLog(@"%d", rate.intValue);
}

what i doing wrong?

DYRateView not shows in UITableViewCell in Storyboard

Hi Derek,

DYRateView is unvisible in UITableViewCell in Storyboard, however it reacts on touches,
delegate logs it.

I have 2 different tableviews with the same result.
DYRateView that placed in header of the tableview works fine.

What can it be?

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
    {
    static NSString *CellIdentifier = @"Character Cell";

    CharacterCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    Characteristic *characteristic = [self.fetchedResultsController objectAtIndexPath:indexPath];
    cell.characteristicNameLabel.text = characteristic.charType.name;
    cell.rateView.rate = [characteristic.rating intValue];
    cell.rateView.alignment = RateViewAlignmentRight;
    cell.rateView.editable = YES;
    cell.rateView.delegate = self;
    cell.rateView.tag = indexPath.row;
    cell.rateView.backgroundColor = [UIColor clearColor];

    return cell;
    }

Cocoapods Support

Hi, I am writing a podfile for your library. However, Cocoapods requires a version and tag to exist, would it be possible for you to do that so I could submit the podfile?

Thanks,
brian

touchesMoved stopped responding

I'm not sure what happened, I had DYRate view working in my project, then around XCode 4.6.x, a drag over the rating view stopped updating during the drag.

The fix was to add:
[self setNeedsDisplay]
at the end of touchesMoved in DYRateView.m

I'm not sure if this is specific to my implementation, as I have DYRateView as a view inside of FPPopoverViewController. Hopefully this information might help someone else.

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.