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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:24:04+00:00 2026-06-15T18:24:04+00:00

Is that possible to add a subclassed UIButton to XCode 4.5 Interface Builder Object

  • 0

Is that possible to add a subclassed UIButton to XCode 4.5 Interface Builder Object Library, but as Custom Object?

Here you can find the small sample project:
https://www.dropbox.com/s/ioucpb6jn6nr0hs/blabla1.zip

  • 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-15T18:24:05+00:00Added an answer on June 15, 2026 at 6:24 pm

    It isn’t possible to add new objects to the Interface Builder Object Library, but you can drag a regular UIButton out, and change the Custom Class property to you custom class name in the 3rd tab of the Identity Inspector. You wont see any of your customizations in the xib file though.


    I took a look at your sample code. In the BlaButtonVC.m you have the method

    - (id)initWithFrame:(CGRect)frame
    

    This doesn’t get called when you’re initing from the xib. You need to add the code in that method to

    - (id)initWithCoder:(NSCoder*)coder
    

    I tested it and it worked.

    As an aside, I don’t think BlaButtonVC is a good name, because it implies that your class is a view controller, when it is actually a view (unless VC stands for something else in your project).

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

Sidebar

Related Questions

I know that it is possible to add swf metadata to the compile command
Would it be possible to add a new operator to the String class that
I wonder if it's possible to add an Event Listener to a MovieClip that
Is it possible through their add-ins to add support to other languages that c#
Out of curiosity is it possible to temporarily add a character that should be
Possible Duplicate: How to add to an NSDictionary When I do that : NSDictionary
Is that possible to install xCode and iPhone SDK on my iBook G4 with
Is that possible to make a UIToolbarButton pass an object to its target by
It's cool that it's possible to add them in sub classes or mix them
I want to subclass the built-in DropDownList in ASP.NET so that I can add

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.