Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display text in two columns on an iPad

I want to display a certain text in two columns like this one:

================
line1  line4  ||
line2  line5  ||
line3  line6  ||
------------  ||
prev  next    ||

================

I do not want the text to have vertical or horizontal scroll just fit inside the area.

I do not know which View or layout to use - as I am new to IOS development-

thanks

like image 560
triplex xx Avatar asked Oct 10 '22 14:10

triplex xx


2 Answers

If you have some skills in html, you can use UIWebView to show your text in any way that you can implement in mark-up.

like image 91
Pavel Oganesyan Avatar answered Oct 13 '22 11:10

Pavel Oganesyan


The page http://www.cocoanetics.com/2011/01/befriending-core-text/ explains how to display two colums text by using the CoreText framework and NSAttributedString. I hope it helps you.

like image 39
Garoal Avatar answered Oct 13 '22 11:10

Garoal