valueForKey("_searchField") replaced

This commit is contained in:
Vladimir Enchev
2015-08-13 11:40:30 +03:00
parent ef6b73a4a5
commit 6a42e6019c
3 changed files with 30 additions and 32 deletions

View File

@@ -6,8 +6,7 @@ export function getNativeHintColor(searchBar: searchBarModule.SearchBar): colorM
return undefined;
}
export function getNativeFontSize(searchBar: searchBarModule.SearchBar): number {
var bar = <UISearchBar>searchBar.ios;
var sf = <UITextField>bar.valueForKey("_searchField");
var sf = <UITextField>(<any>searchBar)._textField;
if (sf) {
return sf.font.pointSize;
}