i'm working on a iOS project, related with video streamming. One of the controls in the UI is a MPVolumeView. The problem is that when i slide the control for change volume, it seems to use to much CPU. And in fact, the UI becomes slow while i use the slider. How can improve the performance?, maybe i'm doing something wrong?
Reference image for CPU Load from Instruments. In the left only streaming, the peaks in the right were streaming+volume slide.
Thanks.
EDIT:
This is how i'm adding the control to a view:
MPVolumeView *mpVolume = [[MPVolumeView alloc] initWithFrame:CGRectMake(32,
56,
160,
9)];
[self addSubview:mpVolume];
[mpVolume release];
"self" is a custom view, inherits from UIView, but i'm not using xib and drawRect. I'm just adding all the controls in the "initWithFrame:frame" method.