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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:13:23+00:00 2026-05-25T03:13:23+00:00

I am new to developing iOS apps. I am currently making an app which

  • 0

I am new to developing iOS apps. I am currently making an app which changes nib files.

However, after creating a new UIViewController subclass, with a XIB user interface, I cannot get the UIToolbar IBOutlet to work.

It may sound silly but the “UIToolbar” dosen’t go pink/purple in the header file (.h):

@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;

Nor does the “_toolbar”, go blue/green, in the .m:

@synthesize toolbar = _toolbar;

This is causing me issue to use the UIToolbar.

Here is my code for the .h:

#import <UIKit/UIKit.h>

@interface pedestrians : UIViewController;

@property (nonatomic, retain) IBOutlet UIToolbar *toolbar;

@end

And for the .m:

#import "pedestrians.h"

@implementation pedestrians

@synthesize toolbar = _toolbar;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];

    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return YES;
}

@end

Any help would be great. Thanks.

EDIT:

Just tried to add a UIBar Button like this (not picking up any UI stuff):
.m

  • 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-25T03:13:24+00:00Added an answer on May 25, 2026 at 3:13 am

    The code you’ve written created two things relevant to your toolbar: an instance variable named _toolbar (coming from the synthesize statement), and the accessors at self.toolbar. You’re trying to use an instance variable named “toolbar” when no such thing exists. Either use _toolbar, or use self.toolbar. Preferably the latter, as it preserves key-value observing functionality and allows for better inheritance behaviors.

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

Sidebar

Related Questions

I am new to developing android apps. I am making an app where simple
I am new to IOS development (currently, I'm developing websites in ASP.NET) and I
i am currently developing an App based on iOS 5 on Xcode 4.2 .
i'm currently developing an app for both Android and iOS, thing is... I started
I'm currently developing an app for iPad. The development started for iOS 4.2 and
I am new to iOS (iphone and ipad) development. I am developing an app.
I am new in developing IOS apps. I have made 3 custom buttons on
When we are developing new sites or testing changes in new ones that involve
When developing a new web based application which version of html should you aim
I'm developing a new ASP .NET website which is effectively a subset of 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.