flashScrollIndicators到以编程方式添加到子视图的textView

时间:2014-04-27 20:40:19

标签: ios objective-c uiscrollview uitextview

我已经以编程方式将textView添加到视图中

@implementation viewController {
    UITextView *textView;
}

- (void)viewDidLoad
{
    [super viewDidLoad];

    for (int i = 0; i < 4; i++) {
        textView = [[UITextView alloc] initWithFrame:textViewFrame];
        textView.text = [self.text objectForKey:[arrayKeys objectAtIndex:i]];
        [self.scrollView addSubview:textView];
    }
}

我这样说,所以我可以在每个textView的滚动视图中有4页。但是,当用户打开视图控制器时,我怎么能使用flashScrollIndicators?

0 个答案:

没有答案