Ok, I can create a plot. But if I want the plot to be given data points one at a time at every 1 second interval, I don't know how to get it to work other than redrawing the plot each time. What methodology do I need to apply to add more data points to the plot subclassing UIView?
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
// Initialization code.
}
return self;
}
- (void)drawRect:(CGRect)rect {
// Drawing code.
}
- (void)addSample: ??{
???
}
thx