Fix issue that caused the waveform to draw flat across 1/3 of the screen#1
Fix issue that caused the waveform to draw flat across 1/3 of the screen#1Pepsi1x1 wants to merge 5 commits intodr-skot:masterfrom
Conversation
…lly in landscape mode
|
Removed the status bar in IB and that fixes the waveform in landscape! |
|
Hey, Thanks for working on this. I'm looking over your changes. I don't think using Also I don't want to get rid of Actually a while ago I discovered a There's still an issue. The oscilloscope is now drawing three cycles of sampling but the edges of the samples don't quite line up. If you play around with it you'll see there are discontinuities in the curve at around 1/3 and 2/3 of the way across. Thanks again for your help. S |
|
Thanks for your swift reply, ill check out the new version and look at a solution that renders this correctly then! If nothing else you should remove the status bar from the XIB used for the oscilloscope view though, since this will stop the waveform from drawing full screen in landscape orientations. Cheers, David. |
The wScale variable was the cause of the the waveform not drawing correctly, I also updated the drawRect method to use the provided rect as bounds for drawing.
The waveform still doesn't draw to full width in landscape orientation though!