Wednesday 12 April 2017

Line Breaks and Number of Lines based on data in Swift Label (Programmatically)




Change the values in story board of label values to 

Lines --> 0

Line Break -- > Word wrap





override func viewDidLoad() {        super.viewDidLoad(){self.chatdisplayTableview.estimatedRowHeight = 600.0;        self.chatdisplayTableview.rowHeight = UITableViewAutomaticDimension;        self.chatdisplayTableview.setNeedsLayout()        self.chatdisplayTableview.layoutIfNeeded()}

No comments:

Post a Comment

Remove bottom line in navigation bar

navigationController ?. navigationBar . setBackgroundImage ( UIImage (), for: . any , barMetrics: . default )          navigat...