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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:12:08+00:00 2026-06-11T12:12:08+00:00

UPDATE: iOS 4 is a major player. If you’re running the iOS 4 sim,

  • 0

UPDATE: iOS 4 is a major player. If you’re running the iOS 4 sim, the labels will return 0.00 for the size, since it never loaded… this changes my final question to be: “How do you find the font size in iOS 4, if the Xib is loading a different font? Or… would it be better to load a working font for both, grab the size, then change it to be the newer one if iOS 5, just flipping the test?”

The latter seems obvious, but isn’t ideal for the reason that, the designer goes into the Xib and the new font is thinner, thus we have to change the size to be smaller for normal Helvetica (for iOS 4). If visually, the designer and I look at the wrong font when designing it, it’s just not ideal.

Perhaps I figured this one out, but I’m hoping an iOS wizard can answer this xib-becomes-0 initial testing on xib load issue, if it is possible.

—– end update —–

I’m trying to grab the currently set font pointSize from my outlets and am having a really tough time.

The problem: iOS 4 doesn’t support the font I’m using. iOS 5 does.

The solution: Call a function that gets the current iOS level, and if 5, return the very same label and use its font type. If iOS 4, set it to Helvetica and try to grab its size (set in the xib).

Grabbing the size is impossible, it always returns 0.00 (except for some cases, about to determine that, but…) the cause is not from lazy loading. I just called the same function (the change font one) after 1 second delay upon loading of the view.

The results:

NSLogging the labelName.font.pointSize before the “get font for XX” function prints 0.00, doing it after prints the sizes.

The weird part: While I can’t manually find it, regardless of if I use xHeight, pointSize, or lineHeight (frame.size.height is too large, otherwise would do that), if I simply return the font for iOS 5, it looks fine, as if, somehow-somewhere it finds the right value. I’m wishfully thinking that might not be private, but haven’t found that.

Problem can’t be lazy loading making stuff nil, ’cause the second delay’s way more than time needed to load the labels (and they’re visible).

Now to reboot, thanks to the unfixable boostrap thing.

Thanks for any help!

I’m not new to iOS, this is puzzling me a bit

  • 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-11T12:12:09+00:00Added an answer on June 11, 2026 at 12:12 pm

    I have not found any solution since asking.
    I believe the answer is:
    iOS 4 simply does not create the font or rather:
    Previous iOS Versions do not create label’s texts if the font does not exist on that platform.

    I just know this isn’t documented because it’s in a WWDC video, like MKMapKit mapRect defs

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

Sidebar

Related Questions

UPDATE It looks like this problem has been quietly fixed in iOS 4.3. Up
Is it theoretically possible to use in-app purchases to update an iOS app automatically?
I am currently working on an update to an iOS application that was released
i have ios application with xcdatamodeld, i want update some data so need a
I'm working on an iOS App (FW: 5.0+ & ARC) which needs to update
What is the most relevant and best way to update data on an iOS
I recently started using Xcode 4.2 and the iOS 5 simulator. When I update
I want to create a schedule update to my ios, lets say for example
UPDATE 4.0 Seems like iOS 4.0 changed something here. Same code producing incorrect backgrounds
Update https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScreen_Class/index.html#//apple_ref/occ/instp/UIScreen/brightness That's the Apple Doc for controlling screen brightness. Below is the original

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.