/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #ifdef USE_TI_UISCROLLABLEVIEW #import "TiUIView.h" @interface TiUIScrollableView : TiUIView { @private UIScrollView *scrollview; UIPageControl *pageControl; int currentPage; // Duplicate some info, just in case we're not showing the page control BOOL showPageControl; CGFloat pageControlHeight; BOOL handlingPageControlEvent; CGFloat maxScale; CGFloat minScale; // Have to correct for an apple goof; rotation stops scrolling, AND doesn't move to the next page. BOOL rotatedWhileScrolling; // See the code for why we need this... int lastPage; int cacheSize; } -(void)manageRotation; -(UIScrollView*)scrollview; @end #endif