Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:35:11+00:00 2026-06-03T23:35:11+00:00

I have a contentview in uiscrollview, I hope to ge hight resolution when uiscrollview

  • 0

I have a contentview in uiscrollview, I hope to ge hight resolution when uiscrollview zoom in or zoom out in a particular level. I got this aim but screen flash (flash with a view’s background or some tile picture before )before draw hight resolution content. it’s just not a smooth transition. I refer tiling demo in scrollviewsuite (a apple demo). The difference I did is that I do refresh content in a thread, in this thread I draw content in tile uiview (Actually i want paint a CALayer on background thread). I call it like this:

[self perform: @selector(refreshContent) OnThread:mythread withObject:nil waitUntilDone:YES]

I’ve used waiUntilDone:YES in UI mainthread. wait mythread to repaint content completely. But
I got this situation: the screen flashes some tile content (which not updated) and then gets high resolution content.

If I remove [self perform: @selector(refreshContent) OnThread:mythread... call “refreshContent” directly, the screen doesn’t flash ,update content show on screen immediately,

Someone who be interested and want to help me, you can modify _Tiling demo in apple’s scrollviewsuite demo.. Use a thread to refesh content at another resolution.

all i said is that when update a calayer or uiview ‘s content in a background thread but content not show on screen immediately as i wished… anybody who can help me slove this problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:35:13+00:00Added an answer on June 3, 2026 at 11:35 pm

    I’ve found a solution for this question. The answser is that you cannot update ui in a thread directly (because when a runloop end in thread, [CATranscation flush] may not be called , so the progress of update screen is not continuos and screen flashed),
    but if you want , we can make it like this:

    1. Prepare calayer’s contents as a image in the thread as you wanted (image can be rendered from engine such as webkit or download from network).

    2. Assign the image which rendered in a thread to calayer’s contents property in mainthread.
      “in main thread”, this is important.

    If you do it follow the suggestions above, screen’s flash problem will be removed..

    May be someone doubt why render a image in a thread, because I suppose that thread is a
    render thread, cann’t render anyting in other thread as well as main thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIView containing a UIScrollView . This UIView is supposed to respond
I have an UIScrollView and in the lower part of the screen is a
I have an app that is setting the contentView when images are clicked.This one
In my app, i have customize UITableViewCell and is using its contentView property. But
like this question , i have an NSView which is the contentView for an
I have a custom UITableViewCell subclass. I have set the contentView of my cell
Setup: I have a UITextView inside a UITableViewCell 's contentView . I want it
I have this method in App Delegate that makes a window and content view
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.