Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
After loading my UIWebView I'm zooming and scrolling programmatically. This results in a blurry UIWebView. When i pinch the UIWebView it redraws itself and the web content isn't blurry. How can I manually redraw the UIWebView so I can manually zoom and scroll without a blurry view?
When the actual content of your view changes, it is your responsibility to notify the system that your view needs to be redrawn. You do this by calling your view’s setNeedsDisplay or setNeedsDisplayInRect: method of the view. These methods let the system know that it should update the view during the next drawing cycle. Because it waits until the next drawing cycle to update the view, you can call these methods on multiple views to update them at the same time.
I suppose you should have stated that in your original post. Otherwise, people (like myself) are suggesting solutions that you've already tried. And that's just wasting everyone's time.
I suppose you should have stated that in your original post. Otherwise, people (like myself) are suggesting solutions that you've already tried. And that's just wasting everyone's time.
Have you tried setNeedsLayout ?
same problem.. I use the UIWebView delegate btw
- (void)webViewDidFinishLoad:(UIWebView *)webView { [self removeLoadingScreen]; [self setWebviewContent]; //set zoom scale and content offset [self.view addSubview:webView]; [webView.scrollView setNeedsDisplay]; // is this the right place? }
Replies
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesomewhen done zooming i call
[webview setNeedsDislapay]
or
[webview.scrollview setNeedsDisplay]
still blurry images though
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeHave you tried setNeedsLayout ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome