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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:02:12+00:00 2026-06-04T12:02:12+00:00

This has got to be the most bizarre thing I’ve ever seen. So I’ll

  • 0

This has got to be the most bizarre thing I’ve ever seen. So I’ll go and set up a event handler from an object created with IB, then I’ll write some code like:

[connectedObjectViaIB setBackgroundColor:[UIColor blackColor]];

also tried :

connectedObjectViaIB.backgroundColor = [UIColor blackColor];

And even though the event handler gets called, and does go through this code (tested with breakpoints) the background Doesn’t get set. The Outlet doesn’t seem to be connected even though it appears it is. This is happening with a couple of other IB objects and other property setters. Anyone experienced 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-04T12:02:13+00:00Added an answer on June 4, 2026 at 12:02 pm

    From the sound of it (code is running, but no changes are seen) you are calling this code too early.

    In a view controller, none of the outlets are connected until after the base viewDidLoad has been run. Before then, the value of all the outlet variables will be nil.

    A common case where code like yours does not work is when calling from a prepareForSegue method – the destination view controller’s view has not yet been loaded, so the outlets are nil.

    Another is just after initialising a new controller – again, the view has not loaded yet.

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

Sidebar

Related Questions

I think this has to be THE most frustrating thing I've ever done in
Has anyone got this configuration working? Latest Netbeans, latest Glassfish, I created an EJB
This has got to be one of the most frustrating issues with asp.net. I
Ok, This has been explained a few times (I got most of the way
This has got to be one of the most frustratingly stupid bugs I have
This has got me a little annoyed to say the least... I'm upgrading a
This has got me very confused and I can't seem to find an answer
Im sure this has got to be something simple that I am overlooking, but
I want to achieve the functionality that this editor has got with its preview
I've been working on some MySQL Joins but this one has got me a

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.