Export code to a UIScrollView subclass, fix scroll problem