• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Vertically Centered Colon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vertically Centered Colon


  • Subject: Re: Vertically Centered Colon
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 30 Nov 2016 09:22:54 +0700

> On 30 Nov 2016, at 09:18, Doug Hill <email@hidden> wrote:
>
>
>> On Nov 29, 2016, at 3:58 PM, Rick Mann <email@hidden> wrote:
>>
>>
>>> On Nov 29, 2016, at 09:38 , Doug Hill <email@hidden> wrote:
>>>
>>> Wow, it's awesome that this works! And now that I know how to set these attributes for a UILabel, I might try using some other features of SF font, such as contextual fractional forms for any fraction.
>>
>> Oh, wow, contextual fractional forms! This is *perfect* for the app I'm working on currently.
>>
>> I'm late to this thread. Does this stuff only work for attributed strings?
>
> I believe you can use [UIFont fontWithDescriptor:size] with a non-attributed string but if you want to mix font styles in a single string, then you need attributed.

I just tried:

someLabel.font = fontVariationWithCenteredColons;
someLabel.text = @“abc:xyz”;

and it works.

Gerriet.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Vertically Centered Colon (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Vertically Centered Colon (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Vertically Centered Colon (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Vertically Centered Colon (From: Alastair Houghton <email@hidden>)
 >Re: Vertically Centered Colon (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Vertically Centered Colon (From: Doug Hill <email@hidden>)
 >Re: Vertically Centered Colon (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Vertically Centered Colon (From: Doug Hill <email@hidden>)
 >Re: Vertically Centered Colon (From: Rick Mann <email@hidden>)
 >Re: Vertically Centered Colon (From: Doug Hill <email@hidden>)

  • Prev by Date: Re: Vertically Centered Colon
  • Next by Date: Re: Vertically Centered Colon
  • Previous by thread: Re: Vertically Centered Colon
  • Next by thread: Re: Vertically Centered Colon
  • Index(es):
    • Date
    • Thread