• 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: Trying to subclass UISwitch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to subclass UISwitch


  • Subject: Re: Trying to subclass UISwitch
  • From: Philip Ershler <email@hidden>
  • Date: Tue, 05 Apr 2011 08:15:52 -0600

This is the same link that Roger Dalal posted yesterday.

Thanks
On Apr 5, 2011, at 6:57 AM, Hank Heijink (Mailinglists) wrote:

> Typing "customize uiswitch" into Google returned this as the second hit: http://osiris.laya.com/projects/rcswitch/
>
> Might be worth looking at.
>
> Hank
>
> On Apr 4, 2011, at 10:22 PM, Philip Ershler wrote:
>
>> The first thing I tried to do was to subclass the UISwitch. But when one looks at the docs for the UISwitch there are no Properties or Instance Methods that one can override to change the "text" on the switch. And when one looks at the origins of the UISwitch, there is nothing to be overridden to change the text (or actually the images that contain text) either.
>>
>> Inherits from
>> UIControl : UIView : UIResponder : NSObject
>> Conforms to
>> NSCoding
>> NSCoding (UIView)
>> NSObject (NSObject)
>> So when I hit The UISwitch class is not customizable. I threw in the towel.
>>
>> Phil
>>
>> On Apr 4, 2011, at 6:20 PM, Laurent Daudelin wrote:
>>
>>> I think there is a difference between "customizable" and "not subclassable". The question I guess would be: did he try to subclass?
>>>
>>> -Laurent.
>>> --
>>> Laurent Daudelin
>>> AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
>>> Logiciels Nemesys Software              			email@hidden
>>>
>>> On Apr 4, 2011, at 15:04, Luke the Hiesterman wrote:
>>>
>>>> "The UISwitch class is not customizable."
>>>>
>>>> And what he really wanted to do was customize the appearance.
>>>>
>>>> Luke
>>>>
>>>> On Apr 4, 2011, at 3:02 PM, Jeffrey Walton wrote:
>>>>
>>>>> On Mon, Apr 4, 2011 at 12:20 PM, Philip Ershler <email@hidden> wrote:
>>>>>> Hi,
>>>>>>    After beating my head against the wall trying to subclass UISwitch, so that I might change the "text" for the two states, I finally noticed that there is a statement in the docs that UISwitch cannot be subclassed. (Please no wise cracks that I should have seen that straight away, I get to claim old eyes).
>>>>> Prohibiting subclassing is *not* mentioned here:
>>>>> http://developer.apple.com/library/ios/#documentation/uikit/reference/UISwitch_Class/Reference/Reference.html
>>>>>
>>>
>>> _______________________________________________
>>>
>>> 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
>>
>> Philip R. Ershler Ph.D.
>> University of Utah
>> Cardiovascular Research and Training Institute
>> 95 South 2000 East
>> Salt Lake City, UT 84112-5000
>>
>> phone: (801) 230-8771
>> alt ph: (801) 587-9528
>> fax: (801) 581-3128
>> e-mail: 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
>>
>

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000

phone: (801) 230-8771
alt ph: (801) 587-9528
fax: (801) 581-3128
e-mail: 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

References: 
 >Trying to subclass UISwitch (From: Philip Ershler <email@hidden>)
 >Re: Trying to subclass UISwitch (From: Jeffrey Walton <email@hidden>)
 >Re: Trying to subclass UISwitch (From: Luke the Hiesterman <email@hidden>)
 >Re: Trying to subclass UISwitch (From: Laurent Daudelin <email@hidden>)
 >Re: Trying to subclass UISwitch (From: Philip Ershler <email@hidden>)
 >Re: Trying to subclass UISwitch (From: "Hank Heijink (Mailinglists)" <email@hidden>)

  • Prev by Date: diable localization
  • Next by Date: Re: Trying to subclass UISwitch
  • Previous by thread: Re: Trying to subclass UISwitch
  • Next by thread: Odd NSCache Eviction Behaviour
  • Index(es):
    • Date
    • Thread