Re: Custom font for UIAlertAction
Re: Custom font for UIAlertAction
- Subject: Re: Custom font for UIAlertAction
- From: David Duncan <email@hidden>
- Date: Tue, 15 Dec 2015 10:43:03 -0800
> On Dec 15, 2015, at 10:23 AM, Wojciech Czekalski <email@hidden> wrote:
>
> I dont recommend it either but it is possible to do it this way. It requires extensive testing etc. If done properly however won't crash your app if anything but will silently fail.
What I’m saying is that UIKit won’t guarantee that this won’t someday crash your application. Doing things like this is wholly undefined, do not do them.
>
> Wysłane z iPhone'a
>
> Dnia 15.12.2015 o godz. 18:04 David Duncan <email@hidden> napisał(a):
>
>>
>>> On Dec 15, 2015, at 8:53 AM, Wojciech Czekalski <email@hidden> wrote:
>>>
>>> Yes, you can recursively iterate through the alert view's subviews and check for a UILabel and set the font on it. It's hacky but I don't think there's another way
>>
>> Do NOT do things like this. The view hierarchy is considered private and the results of any changes you make are not guaranteed to continue working into the future.
>>
>>>
>>> Wysłane z iPhone'a
>>>
>>> Dnia 15.12.2015 o godz. 15:44 Eric E. Dolecki <email@hidden> napisał(a):
>>>
>>>> I am hoping to change the font for the buttons in a UIAlertController (not
>>>> the color, just the face as the styles give me what I want). It doesn’t
>>>> appear I can use an attributedString (takes String) - is there any action I
>>>> can take to achieve this besides subclassing?
>>>>
>>>> Eric
>>>> _______________________________________________
>>>>
>>>> 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
>>>
>>> _______________________________________________
>>>
>>> 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
>>
>> --
>> David Duncan
>>
--
David Duncan
_______________________________________________
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