Created
April 9, 2012 16:04
-
-
Save michaelvillar/2344449 to your computer and use it in GitHub Desktop.
TUITextView in TUIScrollView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scrollView_ = [[TUIScrollView alloc] initWithFrame:scrollViewFrame]; | |
textView_ = [[TUITextView alloc] initWithFrame:scrollView_.bounds]; | |
textView_.autoresizingMask = TUIViewAutoresizingFlexibleWidth; | |
scrollView_.horizontalScrollIndicatorVisibility = TUIScrollViewIndicatorVisibleNever; | |
scrollView_.scrollEnabled = YES; | |
scrollView_.clipsToBounds = YES; | |
[scrollView_ setContentSize:textView_.bounds.size]; | |
[scrollView_ addSubview:textView_]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, moving the scrollbar is working but not the gestures, let me see what is up here.