I\'ve created a Label with the following code :
func setupValueLabel() { valueLabel.numberOfLines = 1 valueLabel.font = UIFont(name: \"Avenir-Black\", s
Thanks to @rintaro, it works finally.
One more thing for my case, it didn't work because I was setting ByWordWrapping. I had to set lineBreakMode as ByClipping.
ByWordWrapping
lineBreakMode
ByClipping