İçeriği ayarladıktan sonra göstermediğim dikey kaydırma göstergesiyle ilgili bir sorunum var. UIScrollView Dikey Kaydırma Göstergesi
bu kodu bkz:UITextView *textView = [[UITextView alloc] init];
[textView setAttributedText:attributeString];
[textView setFrame:CGRectMake(10, 0, self.view.frame.size.width -20, 100)];
[textView sizeToFit];
[textView setFrame:CGRectMake(10, 10, self.view.frame.size.width -20,
textView.frame.size.height +15)];
[self.scrollView addSubview:textView];
[self.scrollView setContentSize:CGSizeMake(self.scrollView.frame.size.width,
textView.frame.size.height +20)];
[self.scrollView scrollRectToVisible:CGRectMake(0, 0,
self.scrollView.bounds.size.width,
self.scrollView.bounds.size.height)
animated:YES];
[self.scrollView setScrollEnabled:YES];
[self.scrollView setShowsVerticalScrollIndicator:YES];
scrollview yüksekliği> onun içerik boyutu sonra Scrollview kaydırmak mümkün değilse, senin scrollview yüksekliğini ne herhangi bir yardım hepsinden lütfen
Scrollview height = görünümü heigh –
NSLog = 628.000000 ("% f", self.scrollView.frame.size.height @) iPhone 6 artı –
NSLog'da (@ "% f", self.scrollView.contentSize.height); = 1820.333333 –