Remove closeButton and using its place with textField

Thread is closed for posting
2 posts, 0 answers
  1. Miguel
    Miguel avatar
    4 posts
    Member since:
    Apr 2016

    Posted 24 May 2016 Link to this post



    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?



  2. Miroslava
    Miroslava avatar
    27 posts

    Posted 26 May 2016 Link to this post

    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.

    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
Back to Top