Remove closeButton and using its place with textField

2 posts, 0 answers
  1. Miguel
    Miguel avatar
    4 posts
    Member since:
    Apr 2016

    Posted 24 May Link to this post

    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?

     

     

  2. Miroslava
    Admin
    Miroslava avatar
    19 posts

    Posted 26 May 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.

    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
  3. DevCraft banner
Back to Top