This is a migrated thread and some comments may be shown as answers.

Remove closeButton and using its place with textField

1 Answer 24 Views
AutoCompleteTextView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Miguel
Top achievements
Rank 1
Miguel asked on 24 May 2016, 02:19 PM

Hello,

 

I'm trying to remove the default closeButton from an AutoCompleteTextView. I can successfully call:

[_autocompleteTextView.closeButton removeFromSuperview];

But the textField inside AutoCompleteTextView is not filling its space. I tried modifying _autocompleteTextView.textField.frame with no success.

Is there anything that can be done?

 

 

1 Answer, 1 is accepted

Sort by
0
Miroslava
Telerik team
answered on 26 May 2016, 01:37 PM
Hello Miguel,

Thank you for contacting us.

I tested your scenario. It seems like this is an issue that occurs when you use removeFromSuperview. Thank you for pointing our attention to this issue. I also updated your Telerik points. 
It is logged in our feedback portal and you can check its status here
You can use the contentView to fill the space. Please consider the code snippet below.

_autocompleteTextView.contentView.backgroundColor = [UIColor redColor];


I hope this helps. If you have more assistance, do not hesitate to contact us.

Regards,
Miroslava
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteTextView
Asked by
Miguel
Top achievements
Rank 1
Answers by
Miroslava
Telerik team
Share this question
or