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 do I not get optional in the output?
Material Select blinking on iOS
How to get the Core data Primary key value in ios Swift? [duplicate]
How to remove only minutes from UIDatePickerMode.DateAndTime
UIButton click causing app freeze/Rapid increase in memory
libobjc.A.dylib objc_msgSend crash occurring with core data usage in background thread
Disabling Dynamic Type in Swift
how to make overlay with activity indicator programatically
performseguewithidentifier works with a delay
Type [TeamModel] has no subscript members
Pdf file in webview not scrolling
Ternary Conditional Operator for nil/not nil
Xamarin / IOS / Azure - No 'id' member found on type
iOS 9 core location crash
Better accessibility label for a clickable table view cell
iOS add fixed footer UIView to multiscreen app

Categories

HOME
ios
html5-canvas
performance
asp.net-identity
unit-testing
runnable
react-navigation
bolt-cms
jsonschema
asana
redhat
vsix
encog
active-directory
mvvm-light
tin-can-api
intl
android-vision
calayer
ellipse
rebus
atmelstudio
thrift
gitlab-ci-runner
freetype
collision
slime
rtp
missingmethodexception
core-location
mediator
selenium-edgedriver
burp
parallax
scalability
text-parsing
kprobe
apache-commons-httpclient
scom
sqlite.swift
html-select
ose
ollydbg
subtotal
azure-app-service-envrmnt
powerbuilder-conversion
ubuntu-server
json-rpc
vtable
runge-kutta
amazon-vpc
compass-lucene
qmenubar
msysgit
http-status-code-500
adal.js
gcc4.8
node.js-tape
mapr
ultratree
jasny-bootstrap
heritrix
cufft
finalcut
duration
flotr2
trello.net
google-api-ruby-client
lidar
illegalstateexception
python-dragonfly
crosswalk
esky
bloodhound
linegraph
boost-coroutine
gem5
antiforgerytoken
diagonal
swift-array
isql
applicationstate
knockout-mvc
private-methods
fig
srp
mongo-shell
execcommand
vlfeat
re2c
ioerror
apache-commons-dbcp
webcal
mosek
impdp
haar-wavelet
libavg
tipsy
expressionvisitor
custom-tag
net-ssh
utility
anemic-domain-model
newsgroup
crc-cards

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