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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:48:46+00:00 2026-05-24T03:48:46+00:00

I am changing UIButton font size but it does not effect. UIButton*headingButton=[UIButton buttonWithType:UIButtonTypeCustom]; headingButton.frame=CGRectMake(182,

  • 0

I am changing UIButton font size but it does not effect.

UIButton*headingButton=[UIButton buttonWithType:UIButtonTypeCustom];

headingButton.frame=CGRectMake(182, 4, 450, 42);        

[headingButton setTitleColor:[UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0] forState:UIControlStateNormal]; 
  • 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-24T03:48:47+00:00Added an answer on May 24, 2026 at 3:48 am

    I cant see in this code that u are changing font size but anyway, this can be done like so:

    [headingButton.titleLabel setFont:[UIFont fontWithName:<your font name> size:<your desired size>]];
    

    or

    [headingButton.titleLabel setFont:[UIFont fontWithName:systemFontOfSize:<your desired size>]];
    

    Update: plus you also need to see if the font u are setting exists in your app to check just do this:

    NSLog(@"Font family names: %@", [UIFont familyNames]);
    NSLog(@"Fonts in family Myriad Pro : %@", [UIFont fontNamesForFamilyName:@"Myriad Pro"]);
    

    If it doesnt exist, you need to drag the otf file into ur project and also add the “Fonts provided by application” in info.plist

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

Sidebar

Related Questions

I am drawing a custom button: UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom]; myButton.frame = CGRectMake(10,10,44,70);
Does changing Log4j's log.properties require a restart for the changes to take effect? I'm
changing a static resource during runtine is something that sounds not possible. I have
What is the best way to go about changing the dimensions of a UIButton
Changing Mode: Scale to fit has no effect on the MapView?
Obviously changing schema, adding / removing published articles etc expires the snapshot, but is
Changing the scale to (2, .5) on a textfield's transform.matrix just makes the font
I am changing from MySQL to PostgreSQL but can't find equivalent to MySQL's collation
I am having difficulty in changing the image of my UIButton which is contained
I'm setting text color for UIButton headingButton.titleLabel.textColor = [UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0]; It's

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.