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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:19:54+00:00 2026-05-26T19:19:54+00:00

I am trying to see if this would be a good option? I am

  • 0

I am trying to see if this would be a good option? I am trying to generalize info button -> to one view controller with different views

My model looks like:

  1. ViewController
    1. View One
    2. View Two
    3. View Three

Now I am trying to set all these view in Case bases, based on where the info button is going to click on different view controller, that particular view is going to show with respect to the info view controller. In order to achieve this, I had an idea of connecting simply the outlet for the view controller on the run-time to the view I want to set.

Is there anyway to set the Outlet pro-grammatically at run-time?

Thanks

  • 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-26T19:19:55+00:00Added an answer on May 26, 2026 at 7:19 pm

    Short answer: Yes, you can set any property at runtime.

    Longer answer: Yes, You can set any property (e.g. @property (nonatomic, strong) UIView *myView) at runtime. An outlet is simply a property that is defined with IBOutlet to allow interface builder to see it as an available outlet. If you are only going to assign the property at runtime you don’t need to define the property as IBOutlet. Not sure how you’ve architected your app so don’t know if you want to conditionally create a view controller or a view. In any case, at runtime, you set the property as you would any other property based on the condition you are checking.

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

Sidebar

Related Questions

See this question. How to show popup message like in stackoverflow I am trying
I'm really stuck trying to use java wrapper library for opencv's cvMatchTemplate. See this
I'm looking around trying to see if anybody has asked this before. I don't
As you can see in this jsfiddle , I'm trying to make a toggle
I am trying to get this to work but can't see where I'm going
Im trying to use this page slider jquery plugin, you can see the demo
I have the following and you can see I am trying to pass this
I am trying to see if the user has internet connection when the app
I'm trying to see if there is a way in rails routing to 'return'
I am trying to see if there is an existing row in my sqlite

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.