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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:32:39+00:00 2026-06-03T20:32:39+00:00

so far I have done most view programming in code, but it really is

  • 0

so far I have done most view programming in code, but it really is cumbersome to position buttons perfectly in code. I searched for some time, maybe I’m using the wrong words for my search? Anyway, I created a UI in a nib file, it has several buttons. I loaded the .nib file into my view like this:

NSArray* nibViews =  [[NSBundle mainBundle] loadNibNamed:@"UCMenuView" owner:self options:nil];
UIView *menuView = [nibViews objectAtIndex:0];
self.delegate = (id<UCMapviewDelegate>)delegate;
// another controller does the view switching, so I'm sending him the view  
[self.delegate pushView:menuView];

This is ‘fine’. But I don’t understand how I get a pointer to my buttons. I know about IBOutlet, but how do I connect them to the elements in the .nib? How would I connect this @property (strong, nonatomic) IBOutlet UIButton *calendar;
to a specific button in the .nib?

I tried to ctrl-drag (from that little points on the left side of the @property, but that does not work (from neither side). Excuse me if this is an easy question, but I couldn’t find a clear explanation

thanks for your help

  • 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-03T20:32:41+00:00Added an answer on June 3, 2026 at 8:32 pm
    1. Instead of just a UIView *menuView, you need to create a custom
      UIView subclass for that, e.g. UCMenuView. Define your properties on this custom
      class.
    2. Open your .xib file in the editor, select the File’s Owner in
      the left column and set its Custom Class in the identity
      inspector to UCMenuView.
    3. Right-click the File’s Owner in the left column, and connect
      your IBOutlets.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So far I have managed to write some code that should print the source
I have done far more C++ programming than plain old C programming. One thing
I have done some research on this question and most answers are a few
I have not done any animation stuff with iphone development so far. Can anybody
So far i have got the code below which works lovely when trying an
So far I have been creating Web Portal but recently I had a request
I have done the following so far: Created workspace Added my project Added the
I am looking for some assistance. Long story short, I have most of my
I'm a beginner when it comes to programming and Python. I've done most of
So far I have encountered adjacency list, nested sets and nested intervals as models

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.