SimplePDF icon indicating copy to clipboard operation
SimplePDF copied to clipboard

How to add numberOfLines to table?

Open davidseek opened this issue 7 years ago • 5 comments

I would need to add a numberOfLines to the tableView content. Who?

screen shot 2017-11-03 at 3 39 04 pm

Desired result:

screen shot 2017-11-03 at 3 39 52 pm

davidseek avatar Nov 03 '17 22:11 davidseek

I have figured it out with \n but that makes it kinda hard to have it generically since the content may vary but the row height needs to adjust..

screen shot 2017-11-03 at 3 42 38 pm

Also in this example, a comment may have too many words for the row but the row height seems fixed for the whole table. not adjustable per row.

Idea?

davidseek avatar Nov 03 '17 22:11 davidseek

also, the table does not continue on a new page automatically....

simulator screen shot - iphone 7 - 2017-11-03 at 15 45 29

davidseek avatar Nov 03 '17 22:11 davidseek

@davidseek please tell me you have solved this problem?

Belzik avatar Mar 22 '18 13:03 Belzik

In theory yes. You need to calculate the outcoming height yourself and then break the page yourself.

But there is no in house solution.

davidseek avatar Mar 22 '18 16:03 davidseek

davidseek have you able to solve the draw table problem because I am stuck on that it would be great if you help me

ApexMbos avatar Jun 13 '18 08:06 ApexMbos