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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:09:35+00:00 2026-05-26T07:09:35+00:00

I have: [[[[self navigationItem] leftBarButtonItem] customView] setTitle:@ Create ]; Which is triggering a warning

  • 0

I have:

[[[[self navigationItem] leftBarButtonItem] customView] setTitle:@" Create "];

Which is triggering a warning “‘UIView’ may not respond to ‘-setTitle:'”. I’ve tried:

[[[[self navigationItem] leftBarButtonItem] (UIButton*)customView] setTitle:@" Create "];

And get errors when I do this. 0I also tried casting with (id) and that didn’t work either. I know I could probably just store the customView in a UIButton and go from there, but just wondering if it’s possible to cast within a message like 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-05-26T07:09:36+00:00Added an answer on May 26, 2026 at 7:09 am

    Think about what you are casting. Try this

    [(UIButton*)[[[self navigationItem] leftBarButtonItem] customView] setTitle:@" Create "];
    

    The difference in this line and your line is that you should not cast a property (e.g. customView) but rather the returned object on which you are about to call a method.

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

Sidebar

Related Questions

I'm trying to have a button on the self.navigationItem.rightButton that toggles a segmented control
I have created my own leftBarButtonItem: UIBarButtonItem* homeButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(homeButtonClicked:)];
Reading up on WCF we have self hosting option available , one limitation here
Is there a difference between filter and exclude in django? If I have self.get_query_set().filter(modelField=x)
I have Laconica (self hosted twitter ) configured on my local intranet and would
I have a self built JSP webapp and at the moment I'm using tomcats
I have a self-referencing table with an Id, CategoryName, and ParentId. It's a typical
I have a self hosted TCP based WCF service. I am now building a
I have a self referencing table named categories that has a parentcategoryid column that
I have a self referencing table in Oracle 9i, and a view that gets

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.