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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:37:25+00:00 2026-05-28T20:37:25+00:00

I have a full done IPhone project. I need to localize it. First time

  • 0

I have a full done IPhone project.
I need to localize it. First time on a mac, first time with XCode and objective C. I’m pretty much lost out there. Anyway, I’m trying to change the value of a label (my first task).

When I go into “Interface builder”, I have a file .xib. I click on it, I see the interface with some “objects” (images, labels, etc.). Then I can click on a label… How can I change the text value? I’ve looked into the corresponding .m and .h file, there’s no UILabel anywhere…

(I use xcode 4.2)

UPDATE:
I was able to change the text by double clicking the object in Interface Builder. Now I need to change the text in the code.

UPDATE 2
I was able to do it using Jeroen’s solution.

Here are some precisions:

You need to add the IBoutlet UILabel *myLabel; part inside the brackets of the @interface
YourViewController part

The @property goes loose inside the .h file

The @synthesize part goes “loose” inside the .m file

The [myLable release]; part goes inside the method (void)dealloc of the .m file

To change the text inside the code, I added this code :

self.myLabel.text = [NSString stringWithFormat:@"Test..."];

inside the “viewDidLoad” method of the .m file.

And to do the drag’n’drop :

  1. Find the label inside the “Objects” box (in the Interface Builder)
  2. Right click on the Label, there should be a little black popup
  3. At the right of the line “New Referencing Outlet” inside the popup, there is a little circle. That’s the thing that you can drag’n’drop. Drag and drop this on the “File’s Owner” item in the “Placeholders” box.
  • 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-28T20:37:28+00:00Added an answer on May 28, 2026 at 8:37 pm

    If you want to change the text of an UILabel you have to add it manually to the .h en the .m files and then couple it via the interface builder.

    To couple it you should add an IBoutlet in your .h file: eg IBOutlet UILabel *myLabel;

    and make a property from it @property (nonatomic, retain) IBOutlet UILabel *myLabel;

    In the .m file you should synthesize and dealloc.

    eg. @synthesize myLabel;
    and

    [myLabel release]; 
    

    Afterwards you will be able to connect the UILabel from the xib to the sourcefile by right clicking it and connect ‘New Referencing Outlet’ to the correct label in the ‘File’s Owner’

    However that is not how translations on iOS are supposed to be doen. They describe it very nicely here. http://developer.apple.com/internationalization/

    In short Apple recommends to make a xib per language. You can make a xib localizable by right clicking on it and then clicking Make ‘File Localizable’. After you’ve done that you can click on a button that is called ‘Add Localization’ to add a new language.

    Make sure that your app is pretty stable, because keeping up to date with different language is becoming tiresome pretty fast.

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

Sidebar

Related Questions

I have done hands full of project with AspNetSqlMembershipProvider. Now, I have asp.net website
So let's say I have an ArrayList full of Products that need to be
I'm not sure where I've gone wrong, but I have an iphone project that
I have a table full of Actions. Each Action is done by a certain
I have full weekly backups, daily differential backups and hourly transaction log backups. To
If I have Full Control permission on a list, is there a way for
Does Microsoft Access have Full Text Search? I know that MySQL and SQL Server
In my live site I have php include() and require() that have full path
If I start a process via Java's ProcessBuilder class, I have full access to
I have a full path which I would like to remove certain levels of

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.