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

The Archive Base Latest Questions

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

I have a problem at changing the font size in an UILabel dynamically. In

  • 0

I have a problem at changing the font size in an UILabel dynamically. In my app, I have two labels.

  1. The first label’s size is 90*59
  2. The second label’s size is 59*59

Now the problem is, The first label’s font size may vary during run time. I have to change the second label’s font size according to the first label’s font size.

I have used the following method but it doesn’t works.

    CGFloat secondLabelsize = firstLabel.font.pointSize;
    [seconLabel setFont: [UIFont fontWithName: @"Exo-Light" size:secondLabelsize]];

    viewDidLod
    {
    [hr_lbl setFont: [UIFont fontWithName: @"Exo-Light" size:55]];
    }

Every time i have got label size as 55 only. Pls suggest me a to get current font size(first label) instead of defined font size at viewdidload.

  • 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:15:04+00:00Added an answer on June 7, 2026 at 5:15 pm

    Here is the answer,

    label2.frame.size.width == label1.frame.size.width;

    Note : if i use singe “=” its an error. If i use “==” it gives a warning but gives expected output too. Really confused what’s happening there. Any one please guide me to understand this.

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

Sidebar

Related Questions

I have a problem using MigLayout in combination with dynamically changing the font-size of
I have some CheckBoxPreferences and I have no problem changing the icon for them
HI! I have a problem with changing the name of a select element. I
I have the following code, and i have a problem regarding changing the ringtone
I have an strange problem with sencha touch. Changing the value in the select
I have problem with changing this image list provider in to thumbnail provider. In
The problem is in my CSS file: * { font-size: 8px; float: left; }
I have problem with changing activity. I added the line to AndroidManifest and it
Wondering if you can help me out. I seem to have a problem changing
I have a problem with the Font Color for the Website link in an

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.