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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:31:00+00:00 2026-06-17T11:31:00+00:00

EDIT: Just to avoid confusion – this question is about POSITIONING with custom fonts!

  • 0

EDIT: Just to avoid confusion – this question is about POSITIONING
with custom fonts! It is not about how to use custom fonts programatically!

I am trying to get something like this in the interface builder:

enter image description here

As you see I am using custom fonts. Problem is that custom fonts
are not visibe in the interface builder so it is extremely hard
to position them there.

How do you manage situations like that. I am quite new to custom
designs in iOS apps and I have no idea how to start with this.

I think that maybe UICollectionView would be an answer here but
then still – custom fonts and positioning is anyway very hard.

Any ideas on how can I get positioning (not reflection) like
on the image above?

  • 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-17T11:31:01+00:00Added an answer on June 17, 2026 at 11:31 am

    As you see it’s really complicated to do this in IB so Do it in your code. Set text and font to your label, and then retrieve it’s size by following code:

    + (CGSize) heightOfString:(NSString*)string forFont:(UIFont *)font width:(CGFloat)width{
        CGSize size = CGSizeMake(width, CGFLOAT_MAX);
        size = [string sizeWithFont:font
              constrainedToSize:size
                  lineBreakMode:NSLineBreakByWordWrapping];
        return size;
    }
    

    Now adjust the labels accordingly. If these are 3 you can do it easily by seting origin of first center of second and origin from end of screen for last.

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

Sidebar

Related Questions

EDIT: Just to make things clear, this problem was caused by a typo in
I have to edit my question just to make it clear. What I need
** EDIT ** Nevermind, just needed to take out the parens... I get this
Edit: just to be clearer on what I am looking to do. I have
EDIT I've just started skimming Codd's famous 1970 paper that started it all, that
Edit: Turns out I just had some values -switched-. I'm working with OpenGL and
EDIT 2: I have just realised that my HTML is only displaying the artist
Edit For simplicity: I just want to make the most basic possible cursor that
Just a little edit, in case it helps anyone out who happens to stumble
Edit: I fixed the problem by just starting from scratch. Sorry to waste y'alls

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.