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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:01:48+00:00 2026-06-07T17:01:48+00:00

I want to set a custom font on a UILabel, which I’ve figured out

  • 0

I want to set a custom font on a UILabel, which I’ve figured out how to do just fine. My question is how do I access a UILabel that I created via the drag and drop interface builder in the code?

I’ve tried ctrl + clicking the UILabel and dragging it to the file’s owner but it won’t let me. I also tried opening the assistant editor and connecting the UILabel directly to the corresponding .h file, but that won’t work either. How do I access the UILabel programatically?? I know this should be really easy.

  • 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-07T17:01:52+00:00Added an answer on June 7, 2026 at 5:01 pm
    // YourController.h
    
    @interface YourController : UIViewController
    @property (weak, nonatomic) IBOutlet UILabel *theLabel; 
    @end
    
    // YourController.m
    
    @implementation
    @synthesize theLabel; 
    ///....
    @end
    

    Now with the IBOutlet marker in your code you should be able to drag from File’s Owner to the label (not the other way round) in IB.

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

Sidebar

Related Questions

I have Spannable object which I want to set its font by a custom
I want to create a custom set that will automatically convert objects into a
I created a custom EditorPart, and I want to set the Zone and ZoneIndex
i want to build a custom event with jQuery that is not set to
I am making custom buttons for my app and want to set the font
I have downloaded custom font to use on my app. I want to set
i want maven to download custom jar files from an ftp how to set
I have a large data set and I want to write a custom merge
My question is : I have an EditText and I want set a margin
I want to add a custom table to my iPhone app, that should look

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.