dyang / dyrateview Goto Github PK
View Code? Open in Web Editor NEWA custom iOS rate view control similar to the one used in Apple's App Store.
License: BSD 3-Clause "New" or "Revised" License
A custom iOS rate view control similar to the one used in Apple's App Store.
License: BSD 3-Clause "New" or "Revised" License
Hi,
it would be great if the number of stars could be modified with a setter or custom init method.
Thanks,
tfonfara
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;
}
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
Can I make a completion block and pull request then?
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?
Hi;
I want to show the rate initially. When I set it, delegate is triggered. I dont want that delegate is triggered without user touch. How can I do that?
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.
Hi there,
How can I add a rating view in my UITableviewCell.This rating view should be clickable i.e. I can select the stars in tableview cell.
Hi,
I'm using the DYRateView and very pleased!
But when i tried to set the position of the the empty stars i saw that it couldn't be done.
I think it's easy and important enhancement, especially for RTL languages.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.