Bug 17129 - UITableViewCellEditControl label text inconsistent when table is in edit mode
Summary: UITableViewCellEditControl label text inconsistent when table is in edit mode
Status: CONFIRMED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll (show other bugs)
Version: 7.0.4.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-01-08 15:25 UTC by Brian Miller
Modified: 2014-01-16 08:45 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 17129 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Brian Miller 2014-01-08 15:25:22 UTC
When a table is placed in Edit mode, the label on the UITableViewCellEditControl may or may not reflect the cell text.

The label may be "Delete <Cell Text Here>" or may be "Delete ", with a trailing space.
If the cell is moved, then the label always becomes "Delete ".

This reproduces using the TableEditModeAdd sample project.
Steps:
1. Load and run the TableEditModeAdd sample project with Calabash enabled.
2. Press on the "Edit" button to put the table in the Edit mode.
3. Query the edit controls.

Expected: All controls should have text reflecting the cell contents.
Results: The text is inconsistent.


irb(main):035:0> query("TableViewCellEditControl")
[
    [0] {
              "class" => "UITableViewCellEditControl",
                 "id" => nil,
              "label" => "Delete Vegetables, 65 items",
        "description" => "<UITableViewCellEditControl: 0x743f10; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x744330>>"
    },
    [1] {
              "class" => "UITableViewCellEditControl",
                 "id" => nil,
              "label" => "Delete ",
        "description" => "<UITableViewCellEditControl: 0x741fe0; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x742950>>"
    },
    [2] {
              "class" => "UITableViewCellEditControl",
                 "id" => nil,
              "label" => "Delete ",
        "description" => "<UITableViewCellEditControl: 0x740de0; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x740db0>>"
    },
    [3] {
              "class" => "UITableViewCellEditControl",
                 "id" => nil,
              "label" => "Delete ",
        "description" => "<UITableViewCellEditControl: 0x73ff70; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x73ff40>>"
    },
    [4] {
              "class" => "UITableViewCellEditControl",
              "label" => "Delete ",
        "description" => "<UITableViewCellEditControl: 0x73f000; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x73efd0>>"
    },
    [5] {
              "class" => "UITableViewCellEditControl",
              "label" => "Delete ",
        "description" => "<UITableViewCellEditControl: 0x73e190; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x73e160>>"
    },
    [6] {
              "class" => "UITableViewCellEditControl",
                 "id" => nil,
              "label" => "Insert",
        "description" => "<UITableViewCellEditControl: 0x73d320; frame = (0 0; 47 44); opaque = NO; layer = <CALayer: 0x73d2f0>>"
    }
]
Comment 1 Brian Miller 2014-01-13 12:05:27 UTC
Version information:

=== Xamarin Studio ===

Version 4.2.2 (build 2)
Installation UUID: 35efe639-a8a1-48b4-aa9a-cb3c121e0f9e
Runtime:
	Mono 3.2.5 ((no/964e8f0)
	GTK+ 2.24.20 theme: Raleigh
	GTK# (2.12.0.0)
	Package version: 302050000

=== Apple Developer Tools ===

Xcode 5.0.2 (3335.32)
Build 5A3005

=== Xamarin.iOS ===

Version: 7.0.4.209 (Business Edition)
Hash: 23a0827
Branch: 
Build date: 2013-11-11 16:04:00-0500
Comment 2 Sadik Ali 2014-01-14 07:24:27 UTC
Could you please attach TableEditModeAdd sample project? so I can reproduce this issue.
Comment 4 Sadik Ali 2014-01-16 08:45:33 UTC
I have checked this issue with followed steps as mentioned in comment 1 and observed that label always becomes "Delete ".

Refer screen shot: 

Checked With:http://screencast.com/t/eL9eQMqye

XS 4.2.2 (Build 2)
X iOS: 7.0.4.209