Although, the Calendar app doesn’t have this problem, and it’s using a 
disclosure “Button” for the same reason I am: because the table cell content 
has a checkmark that toggles when touching the cell (cell selection); so a 
button, which receives a separate event, is then the only way to distinguish 
between selection and disclosure.

On the other hand, the Calendar app might be using an accessory view to work 
around the bug; if it *is* a bug.

I’d appreciate any insight on this issue. I’ll file a radar if it turns out to 
be a bug.

Paul

On Oct 6, 2013, at 6:03 PM, Paul Scott <[email protected]> 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 protected]> 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.
>> 
>> 
>> 
>> - (UITableViewCell *)tableView:(UITableView *)tableView 
>> cellForRowAtIndexPath:(NSIndexPath *)indexPath {
>> 
>>   UITableViewCell *cell = nil;
>> 
>>   if ( nil == ( cell = [tableView 
>> dequeueReusableCellWithIdentifier:@“testCell"] ) )
>>       cell = [[UITableViewCell alloc] 
>> initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@“testCell"];
>> 
>>   cell.selectionStyle = UITableViewCellSelectionStyleNone;
>>   cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
>>   cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row 
>> + 1];
>>   cell.detailTextLabel.text = [NSString stringWithFormat:@"Detail for row 
>> %d", indexPath.row + 1];
>>   return cell;
>> }


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to