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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:33:24+00:00 2026-05-18T04:33:24+00:00

The following is basically my entire project to illustrate the problem: – (BOOL)application:(UIApplication *)application

  • 0

The following is basically my entire project to illustrate the problem:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    UILabel *integralLabel = [[UILabel alloc]initWithFrame: CGRectMake(30, 60, 200, 150)];
    integralLabel.font = [UIFont systemFontOfSize:100];
    [window addSubview:integralLabel];
    integralLabel.text = @"∫∫∫";
    integralLabel.textAlignment = UITextAlignmentLeft;
    integralLabel.backgroundColor = [UIColor yellowColor];
    [window makeKeyAndVisible];
    return YES;
}

The leftmost integral sign in the label is clipped.

Is there a clean way to fix this? The contents of my labels will change frequently in response to all sorts of things, so I don’t want to do something hackish.

  • 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-18T04:33:25+00:00Added an answer on May 18, 2026 at 4:33 am

    You can add a space at the beginning if the text begins with the integral sign:

    if ([[integralLabel.text substringToIndex:1]isEqualToString:@"∫"])
    {
        integralLabel.text = [NSString stringWithFormat:@" %@", integralLabel.text];
    }
    

    EDIT

    To distinguish between this space and other spaces in the label, you can use different Unicode values for spaces (full list here: http://www.cs.tut.fi/~jkorpela/chars/spaces.html)

    @"\u205F%@"
    

    etc…

    EDIT 2

    You can also subclass UILabel by overriding drawTextInRect:.

    - (void)drawTextInRect:(CGRect)rect
    {
        if (![[self.text substringToIndex:1]isEqualToString:@"∫"])
        {
            [super drawTextInRect:rect];
        }
        else
        {
            CGRect paddingLeftRect = CGRectMake(rect.origin.x + 25.0, rect.origin.y, rect.size.width, rect.size.height);
            [super drawTextInRect:paddingLeftRect];
        }
    }
    

    Hope this helps.

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

Sidebar

Related Questions

I basically have the following flow: XML -> JSON -> Spring MVC -> jsp
Basically I have the following class: class StateMachine { ... StateMethod stateA(); StateMethod stateB();
The following seems strange.. Basically, the somedata attribute seems shared between all the classes
I'm basically looking for a way to automate typing stuff like the following: cout
i have the following jquery code. basically i will have several overlapped divs and
I would like to do the following. Basically have a stored procedure call another
I am trying to do the following in ASP.NET 3.5. Basically, I am binding
Ok, I have the following structure. Basically a plugin architecture // assembly 1 -
I'm learning linked lists, and want to know whether the following program (basically InsertAtEnd
I basically have the following class: .sf-sub-indicator { background: url(/abcprod/images/arrows-ffffff.png) no-repeat -10px -100px; }

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.