UIScrollView + UIWebView = NO scrollsToTop

Es sieht aus wie ein Problem, das eine einfache Lösung haben könnte, aber ich habe nichts gefunden, was den Weg dorthin weisen könnte. Ich verwende UIWebView in UIScrollView und tippe nicht auf statusBar (um den Inhalt nach oben zu scrollen).

Ich habe eine einfache Testanwendung erstellt, um festzustellen, ob es wirklich ein Fehler von UIWebViews ist. Und das ist es wirklich.

//  scrolls to top on status bar tap 
UIScrollView *sv = [[UIScrollView alloc] init];
sv.frame = CGRectMake(0, 0, 320, 480);
sv.contentSize = CGSizeMake(320, 1200);
[self.view addSubview:sv];
// doesn't scroll
UIScrollView *sv = [[UIScrollView alloc] init];
sv.frame = CGRectMake(0, 0, 320, 480);
sv.contentSize = CGSizeMake(320, 1200);

UIWebView *wv = [[UIWebView alloc] init];
wv.frame = CGRectMake(0, 0, 320, 100);
[sv addSubview:wv]; 

[self.view addSubview:sv];

Vielleicht gibt es etwas, das ich deaktivieren könnte, damit UIWebView nicht mit scrollToTop in Konflikt gerät? Oder eine Art Workaround wäre auch nett.

Irgendwelche Ideen?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage