Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2238] iOS7: Support searchBar to have different cursor and cancel button color

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-10-16T16:57:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels3.1.3.GA, ios7
ReporterRey Bumalay
AssigneeMauro Parra-Miranda
Created2013-10-16T15:13:02.000+0000
Updated2016-03-08T07:41:14.000+0000

Description

When we change tintColor to white the cursor changes to white so when you focus a search bar, it doesn't show the cursor. We changed tintColor to white so that Cancel button shows as white but we don't want the cursor to be white. Is it possible to have a different colors for cursor and cancel button?

Comments

  1. Mauro Parra-Miranda 2013-10-16

    Hello, please provide a testcase for this in order to be able to do the upgrade to Mobile. Will reopen when complete. Best, Mauro
  2. Markus Eschenbach 2014-11-11

    The problem allready exists in the current sdk 3.4.0 GA. Here is the test case. Please fix this problem in the next version! Thank you

    Test case

       (function() {
       	var win = Ti.UI.createWindow({layout: 'vertical'});
       	var searchbar = Ti.UI.createSearchBar({barColor: '#385292', tintColor: '#FFFFFF'});
       
       	var tableView = Ti.UI.createTableView({
       		top: 30,
       	    search: searchbar,
       	    data: [Ti.UI.createTableViewRow({title:'Row 1'})]
       	});
       
       	win.add(tableView);
       	
       	win.open();	
       })();	
       

JSON Source