I learn LinearGaugeView using "LinearGaugeNeedle.m" and "LinearGaugeNeedle.h".
In LinearGaugeCell init section, to define [self createRange:x end:y withColor:z], easy to set.
But, I want to create different range on each row,
how can I do?
Hi Hide,
You can absolutely do that.
In the LinearGaugeColumn the following method gets called every time a cell comes into view.
-(IGGridViewCell *)gridView:(IGGridView *)gridView createCell:(IGCellPath *)path usingDataSource:(IGGridViewDataSourceHelper *)dataSource
You can add a method to your cell there that allows you set the range on your gauge.
-SteveZ
Hi SteveZ san,
Thank you so much!
I did it :)
Before then, I forget to write clear method,
(e.g, [cell.gauge clearRanges])
the range is overwrite (call every time a cell)...
Thank you for your nice support!