iOS: Several bug fixes to the Wave Form view.

Related to issue #405.