Re: UITableViewCell.accessoryType UITableViewCellAccessoryDetailDisclosureButton on iOS7
Re: UITableViewCell.accessoryType UITableViewCellAccessoryDetailDisclosureButton on iOS7
- Subject: Re: UITableViewCell.accessoryType UITableViewCellAccessoryDetailDisclosureButton on iOS7
- From: Paul Scott <email@hidden>
- Date: Sun, 06 Oct 2013 19:07:46 -0700
On Oct 6, 2013, at 6:34 PM, Kyle Sluder <email@hidden> wrote:
> On Sun, Oct 6, 2013, at 06:03 PM, Paul Scott wrote:
>> I’m leaning toward a bug, since there are two separate “disclosure”
>> constants for accessoryType; seems you should see one or the other, not
>> both.
>> UITableViewCellAccessoryDisclosureIndicator,
>> UITableViewCellAccessoryDetailDisclosureButton,
>> Paul
>>
>> On Oct 6, 2013, at 5:46 PM, Paul Scott <email@hidden> wrote:
>>
>>> The following code produces an odd accessory view that shows BOTH an (i) icon and a > disclosure chevron. Why are there two “disclosure” indicators? Is this a bug, or intentional? Or, am I doing something wrong in iOS7? This wasn’t an issue in previous iOS releases, and I didn’t see anything in the transition guide regarding this.
>
> This doesn't sound like a bug to me. Did you read the docs?
Yes, I did read the doc. It’s quite obvious, though, that I did not read them well enough, or in their entirety, to my chagrin. I looked for those constants with “disclosure” as part of the name, and only saw the two, and didn’t bother to read further. Embarrassing.
> It lists
> three constants:
>
> """
> UITableViewCellAccessoryDisclosureIndicator
> The cell has an accessory control shaped like a chevron. This control
> indicates that tapping the cell triggers a push action. The control does
> not track touches.
>
> UITableViewCellAccessoryDetailDisclosureButton
> The cell has an info button and a chevron image as content. This control
> indicates that tapping the cell allows the user to configure the cell’s
> contents. The control tracks touches.
>
> UITableViewCellAccessoryDetailButton
> The cell has an info button without a chevron. This control indicates
> that tapping the cell displays additional information about the cell’s
> contents. The control tracks touches.
> """
>
> The last one is new in iOS 7.
This is an unfortunate choice made by Apple. In previous versions of iOS the UITableViewCellAccessoryDetailDisclosureButton did not produce both images, just the button image. The added constant in iOS 7 should have been the one that produces both images, not the other way around.
Now, I have to check the OS version and select one or the other. If Apple had done it right, it would “just work.” And it would have been nice to retain the word “disclosure” in the name.
Sadly, it’s too late for Apple to do it right. No radar will effect a change. Perhaps it’s partly my fault for not working on an iOS 7 code update until now, but gee, it’s a pretty darn small blame.
Thanks, Kyle, for the quick response.
Paul
_______________________________________________
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