SuggestionView Font

2 posts, 0 answers
  1. DEZOOMER Josian
    DEZOOMER Josian avatar
    5 posts
    Member since:
    May 2010

    Posted 02 Sep Link to this post


    I changes the Font of the TexField of the AutoCompleteTextView.

    Now i would like to set the same Font to the SuggestionView.


    How can I do this ?



  2. Sophi
    Sophi avatar
    97 posts

    Posted 07 Sep Link to this post

    Hi Josian,

    You can customize the suggestionView by providing custom cell for it. 
    Consider the following snippets.
    @implementation CustomListViewCell
    - (instancetype)initWithFrame:(CGRect)frame
        self = [super initWithFrame:frame];
        if (self) {
            self.textLabel.font =[UIFont fontWithName:@"HelveticaNeue-Italic" size:16];
        return self;
    TKListView *listView = (TKListView*)self.autocomplete.suggestionView;
    [listView registerClass:[CustomListViewCell class] forCellWithReuseIdentifier:@"cell"];

    I hope this is helpful.

    Telerik by Progress
    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 R3 2016 release webinar banner
Back to Top