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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:32:56+00:00 2026-05-28T00:32:56+00:00

I have a .xib file. I open it up with textfile or Dashcode or

  • 0

I have a .xib file. I open it up with textfile or Dashcode or what ever.

Say it has 4 buttons on it. All the same but with different titles.

My goal is to change the color, font, and background image outside of xcode automatically and then import the file into xcode.

However these things are represented by a reference number that I can’t seem to find any where in my project folder connecting it to the actual image, color, or font.

<reference key="IBUINormalBackgroundImage" ref="650551563"/>  <!-- Button Background -->

So a button looks like this

`<!-- Button 1 -->
<object class="IBUIButton" id="580622739">
<reference key="NSNextResponder" ref="191373211"/>
<int key="NSvFlags">292</int>
<string key="NSFrame">{{20, 124}, {280, 37}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="810145050"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="881065587"/>           <!-- Button Font Type -->
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Facebook</string>     <!-- Button Name -->
<reference key="IBUIHighlightedTitleColor" ref="587412318"/>
<reference key="IBUINormalTitleColor" ref="523599070"/>       <!-- Button Font Color -->
<reference key="IBUINormalTitleShadowColor" ref="457053782"/>
<reference key="IBUINormalBackgroundImage" ref="650551563"/>  <!-- Button Background -->
</object>

`

EDIT: Based on some responses. What I can do is drag and drop a xib into xcode now. But when I am making a new app I want to use an existing xib but with different colors. I will use php to auto create this code file. Then just drag and drop again. I have done this for all my .h and .m and viewcontrollers. I need to figure this out for .xibs.

  • 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-28T00:32:57+00:00Added an answer on May 28, 2026 at 12:32 am

    The xib files contain XML generated by IB in XCode. If you edit this XML, there is no guarantee that your changes won’t get wiped out by IB the next time it writes the file.

    But if I understand you correctly, you are trying to peek at the xib contents to get a better understanding of how to create a UI programmatically. Programmatically generated UI’s are not done by writing xib files. You may get a hint about what parameters can be configured in IB, but there is a lot of content in a xib that is distracting, if that’s what you are trying to do.

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

Sidebar

Related Questions

I have declared IBOutlets in the header file but when I open the XIB
I have a localized AboutApp.xib file with English and es localized versions, but it
I have a xib file open, and I was playing around with it one
I have a XIB file (view) that has a toolbar and a view right
I have the same problem with some xib files in different projects on different
I have an XIB file containing a subview (footerButtonsView) containing two buttons. I change
I have a .xib file containing a UIView and 2 UILabel subviews linked to
I have a XIB file with a UITextView, which I'm associating with a UITextView*
I have a UIViewController I am loading from a xib file and pushing onto
If I have something like a UILabel linked to a xib file, do I

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.