Git Product home page Git Product logo

axratingview's People

Contributors

akiroom avatar inima avatar mikemliu avatar nicholascross avatar rcedwards avatar shu223 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  avatar  avatar  avatar  avatar  avatar

axratingview's Issues

Getting two errors in objective c

I am getting two error for IB Designables

  1. Failed to update auto layout status : Failed to load designables from path (null)
  2. Failed to render and update auto layout status for ViewController(controllerID here eg- a4c-v9-EJD): Failed to load designables from path (null)

Thanks!

Autolayout?

Are there any plans to support Autolayout?

spacing between stars

Great work.
I can not find a interface to set the space between stars.The default space looks crowded.

thank you

thank you for your working but I'm doubt how to set custom height

centring the view

Is it possible to display stars in the centre of the AXRatingView ?

Custom base colors not drawn on cell selection

Using the following modification to the current sample:

diff --git a/AXRatingViewDemo/AXRatingViewDemo/AXOnTheCellViewController.m b/AXRatingViewDemo/AXRatingViewDemo/AXOnTheCellViewController.m
index d5f33bb..685a3c8 100644
--- a/AXRatingViewDemo/AXRatingViewDemo/AXOnTheCellViewController.m
+++ b/AXRatingViewDemo/AXRatingViewDemo/AXOnTheCellViewController.m
@@ -55,12 +55,14 @@
     [ratingView addTarget:self action:@selector(changeRate:) forControlEvents:UIControlEventValueChanged];
     cell.accessoryView = ratingView;
     [cell.accessoryView sizeToFit];
+    ratingView.baseColor = [UIColor colorWithRed:1 green:0 blue:0 alpha:1];
+	//ratingView.baseColor = [UIColor greenColor];
   }
   [cell.textLabel setText:[NSString stringWithFormat:@"No.%d", (int)(indexPath.row + 1)]];
   
   // Setup rating view for each cell.
   AXRatingView *ratingView = (AXRatingView *)cell.accessoryView;
-  ratingView.value = [_ratingNumbers[indexPath.row] floatValue];
+  ratingView.value = 3;
   ratingView.tag = indexPath.row;
   
   return cell;

…will change the base color to red and force all cells to three stars. When a cell is highlighted during touch, the red stars won't be drawn as shown in this screenshot:

red base

However, if the color set to baseColor is one of the defaults provided by the UIColor class, then it will show during highlight. Why? How can this be avoided with a custom color?

green base

Doubt

why not publish to cocoapods

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.