fixed example code with UIScrollView