ios


Reducing the width of truncation in UILabel


I have a UITableViewCell (cell) with some textlabel in it. The string in the text label could be of any length. I wanted to have ellipsis when the text exceeds a certain length. So, I added the below code,
cell.textlabel.adjustsFontSizeToWidth = NO;
cell.textlabel.lineBreakMode = NSLineBreakByTruncatingTail;
This code truncates the label to fit to the screen size. I need to reduce the truncation even further. Is there any possibility of reducing the width of the truncation in the text label ?
We don't want to modify the actually text as we will be using it for computation purpose.
Thanks in advance.

Related Links

How to check valid url?
Automatic Login in IOS Swift [closed]
In UILabel, multiple strings with multiple colors for each string?
Swift lazy load property Alamofire request
Drag and launch type thing in Swift Sprite Kit?
Extend navigation bar under status bar in interface building
UIBezierPath: byRoundingCorners: doesn't work
How To Change The Title Color of an MFMailComposeViewController?
Preventing UIImagePicker memory problems
CoreData. Manage multiple coordinators, in multi thread, multi context
AVPlayer(ViewController): can not play HLS HD video
Duplicate symbols for architecture when using global constants [duplicate]
iOS: UIWebView display link from website [duplicate]
In App Purchases returns error
NSAttributedString with image doesn't work in UITextField?
How to generate iPhone simulator build or .zip file for submit in Facebook for review in iOS

Categories

HOME
dom
vr
performance-testing
tags
graylog2
linear-programming
middleware
twitter-digits
httpbuilder-ng
base
zipfile
google-maps-sdk-ios
google-weather-api
luci
pouchdb
oracle-agile-plm
ellipse
afnetworking-2
watchservice
lazy-loading
jmespath
cmusphinx
nsmutableattributedstring
freetype
jscodeshift
many-to-many
montecarlo
polynomials
italic
centos6
esri
iar
paket
editorconfig
expression-trees
nest-thermostat
azure-api-apps
swipe
sqlite.swift
stackexchange.exceptional
imagemapster
hamcrest
deep-copy
protobuf-3
amazon-vpc
tabview
move
federation
replaygain
ietf-netconf
javascript-security
a-star
itertools
getelementbyid
lapply
sizing
android-alertdialog
dashing
ellipsis
struts1
qlpreviewcontroller
isapi-rewrite
pddl
screen-capture
cng
chunk-templates
devenv
spatial-index
size-t
window-server
isql
applicationstate
mysql5
tab-delimited
citymaps
directcompute
fig
jqgrid-php
keymapping
dotliquid
sshj
onejar
git-gui
nsmanagedobjectmodel
gdb-python
loadlibrary
double-precision
clean-urls
ria
letter-spacing
intel-8080
gemstone
ladon
boost-gil
sdl.net
blackberry-jde
machine.config
contracts

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App