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

  • Home
  • SEARCH
  • 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 6329887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:45:42+00:00 2026-05-24T17:45:42+00:00

I so far only have the interface builder layout I’m not clear on the

  • 0

I so far only have the interface builder layout

I’m not clear on the syntax to reference all of these items from the layout

I know that IBOutlet has to be used somewhere, but I need a bit more handholding on what this objective C is doing. Nothing I’ve read tells me exactly why some declarations start with + and others with –

What I want to do is click a button in my layout, have a modal view pop up and change the background on the entire layout.

so the first step is referencing all these items I’ve made in the nib. help? (or post a link to more intuitive tutorials that you know about)

  • 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-24T17:45:43+00:00Added an answer on May 24, 2026 at 5:45 pm

    So you probably want to create an IBOutlet for your background view. Maybe it’s a UIImageView that you can set it’s image property based on what the user selects in the modal view. For this you would just declare the UIImageView you have in your IB file

    UIImageView *imageView;
    

    and then declare it as a property

    @property (nonatomic,retain)IBOutlet UIImageView *imageView;
    

    and synthesize it in your .m file

    @synthesize imageView;
    

    Don’t forget to release it if you’re not using ARC.

    Then you can open up interface builder and if you click on your view controller File’s Owner and go to the connections inspector you will see there is a new connection there for imageView. Just drag that connection over to your UIImageView in the IB file and that’s it. You now have a reference in your code that connects to your UIImageView in IB.

    That will allow you to set the UIImageView in your code by typing something like

    self.imageView.image = [UIImage imageNamed:theNameTheUserJustPicked];
    

    In order to get the modal view, you need an IBAction to trigger a method in your code so declare one like this in your .h file of your main nib.

    - (IBAction)displayViewBackgroundChooser;
    

    and then define it in your .m file.

    - (IBAction)displayViewBackgroundChooser {
        //present your new view on screen here
    }
    

    Then go back to interface builder and click on the File’s Owner again. You should see it there in the connections inspector and then you can connect it to a button, for example, that would trigger that method.

    Hope this helps to clear things up a bit on IBOutlets and IBActions.

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

Sidebar

Related Questions

So far I have only been updated a view from within its controller. I
The only experience I have so far with a touchscreen interface was one where
So far the only way I have been able to keep index.yaml updated when
I'm suddenly seeing errors which I can so far only explain by the datastore
so far i only know to use Ctrl-Shift-A to do SVN in TextMate. is
So far I've only built small graphical applications, using swing and JComponents as I
thus far i've only been using some basic jquery selectors and functions. but i'm
Done quite a lot of searching around this one and so far I've only
I'm trying to write some C code which is portable only so far as
I've created an open graph action, and so far I can only seem to

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.