Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4244

iOS: Enable searchBar to animate cancel button

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Sprint 2012-04, Release 2.0.0
    • Component/s: iOS
    • Environment:
      • iOS SDK: 4.3.2 (8H7)
      • Titanium 1.7.0 (presumably RC1)
      • Titanium Studio, build: 1.0.0.201105271818
    • Story Points:
      1

      Description

      When a searchBar is NOT attached to a tableView, instead attached to a view on the window, the cancel button isn't animated. Nor does there seem to be a property to enable it. The cancel button IS animated when a searchBar is attached to a tableView.

      On the Q&A site, there is this:
      http://developer.appcelerator.com/question/67231/searchbar-animate-cancel-button

      Hidayet Dogan, looked at the source and wrote:

      iphone/Classes/TiUISearchBar.m (about line 70)

       
      Change:
       
      [search setShowsCancelButton:[TiUtils boolValue:value]];
       
      to
       
      [search setShowsCancelButton:[TiUtils boolValue:value] animated:YES];
      

      Could be a configurable option, I suppose, but having it match the tableView searchBar would probably make sense. The latter is not configurable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blainhamon Blain Hamon
                Reporter:
                philoye Phil Oye
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration