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 6714083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:27:16+00:00 2026-05-26T08:27:16+00:00

I have a UIView with 2 views inside it, one is an about us

  • 0

I have a UIView with 2 views inside it, one is an about us page, the other is a twitter stream/page controlled via a uisegmentation.

The twitter feed runs on didFinishLaunchingWithOptions and runs in the background.

On the twitter page itself I have a reload button which launches the same process, again performing in the background.

I am stuck because the table view never updates, even with

[self.tableView reloadData];

straight after the performInSelector.

Thus I am wanting to perform an update of the table’s data once:

[self performSelectorInBackground:@selector(reloadTwitter:) withObject:nil];

is finished.

How do I do such a task?

  • 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-05-26T08:27:16+00:00Added an answer on May 26, 2026 at 8:27 am

    The first answer would probably work, but you may not be interested in using GCD and blocks. Overall the real problem is most likely that you should not be attempting to update any user interface elements in a background thread – you must do it from the main thread.

    So your best option is to probably add another line within the method that is refreshing the twitter feed:

    [self.tableview performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:No];
    

    Apple has documentation on this here:

    http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Multithreading/AboutThreads/AboutThreads.html#//apple_ref/doc/uid/10000057i-CH6-SW2

    Check the section labeled “Threads and Your User Interface”.

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

Sidebar

Related Questions

I have a scroll view which has one UIView inside which contains the content.
I have a Graph being drawn inside a UIScrollView . It's one large UIView
I have two views, first one is with calendar and the second one is
I have several UIViews and UIImageViews that are loaded inside a UIScrollView. Each page,
I have one single MainViewController which has of course it's one main UIView. I
I have a UIView (menuView in code below) of size 320x218 inside a view.
I have two views inside my XIB for each orientation. They are similar but
The idea basically is: Inside of myViewController NIB I have a UIView as a
I have a UIScrollView of size 320x412 and inside it an UIView of size
In iOS , programmatically, how can one find what top most UIView is? In

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.