microsoft / WinObjC

Objective-C for Windows
MIT License
6.24k stars 808 forks source link

[x86] WOCCatalog - UISearchBar cancel button doesn't do anything #2154

Closed ashvarma closed 7 years ago

ashvarma commented 7 years ago

This is in the most recent master build - 20170228.1

UISearchBar – the first TextField that has the Cancel (which is second from the bottom) – the Cancel doesn’t clear the contents.

For the last TextField which also has a cancel button, it clears the contents

yiyang-msft commented 7 years ago

The first search bar didn't set the delegate thus do nothing. If you try the second one with cancel button, it sets the delegate and will clear the text. Thus this is by design. However, i will enhance the app to make it clear what the expectation is.