EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 222 forks source link

UILabel in cell overlaps the other content #99

Open harshvishu opened 8 years ago

harshvishu commented 8 years ago
screen shot 2016-06-28 at 11 36 25 am
autocompleteTextBox?.registerAutoCompleteCellNib(UINib(nibName: "MyAutoCompleteTableViewCell", bundle: nil), forCellReuseIdentifier: "idMyAutoCompleteTableViewCell")

// load the data for autocomplete   
func autoCompleteTextField(textField: MLPAutoCompleteTextField!, possibleCompletionsForString string: String!) -> [AnyObject]! {
        return  people?.map{ $0.name }
    }

func autoCompleteTextField(textField: MLPAutoCompleteTextField!, shouldConfigureCell cell: UITableViewCell!, withAutoCompleteString autocompleteString: String!, withAttributedString boldedString: NSAttributedString!, forAutoCompleteObject autocompleteObject: MLPAutoCompletionObject!, forRowAtIndexPath indexPath: NSIndexPath!) -> Bool {

                (cell as! MyAutoCompleteTableViewCell).delegate = bankDelegate

        return true
    }

As you can see the text from the label overlaps the buttons. How should I fix this?