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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:26:58+00:00 2026-06-14T19:26:58+00:00

When I try to change the hidden value of a button with performSelectorOnMainThread this

  • 0

When I try to change the hidden value of a button with performSelectorOnMainThread this works:

[pictureButton performSelectorOnMainThread:@selector(setHidden:) withObject:NO waitUntilDone:YES];

But this:

[pictureButton performSelectorOnMainThread:@selector(setHidden:) withObject:YES waitUntilDone:YES];

Gives this error:

Cannot initialize a parameter of type 'id' with an rvalue of type 'signed char'

What kind of internal conversion occurs to create this error? And how can I solve this?

  • 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-14T19:26:59+00:00Added an answer on June 14, 2026 at 7:26 pm

    The parameter is named withObject:. A BOOL isn’t an object, but nil can be passed in, and NO is equivalent to it, so your first example works (by accident).

    You have a few options, but the simplest is probably to use GCD and execute the setHidden: method in a block on the main thread instead.

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

Sidebar

Related Questions

I try to change css attribute with Jquery. I do wrapperInner.css('overflow', 'visible'); but value
I try to change a string into an object using eval but failed. var
im try to change my webrick to passenger with nginx but when i try
example i try to change cell.accessoryView from picture1 to picture2 by fadein but my
When I try to change image for WPF trigger 'IsMouseOver' for button, the control
I try to change the background when click the button and change to default
<input type=range value=5,17 /> If I try to change the value with $('input').val('8,20'); it
I have problem with c# script who change user AD password, when try change
I try to change the color from a UIPopoverControler on iOS 5. To do
I try to change the dimensions of the view in interface builder from the

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.