1

In My Application I have a Information Screen In that i am displaying related information. I have a Total 4 pages Text. In the Text There are Several Paragraphs with Bold headings and Some Bullet points are there

For Example :

My Text is looks like this :

This is Heading

This is Paragraph Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting..

This is Heading 2

The remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

**The Bullet Points are given Below :- **

  • desktop publishing software like Aldus PageMaker including versions
    of Lorem Ipsum.

  • desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. desktop publishing software lik

  • Aldus PageMaker including versions of Lorem Ipsum.

  • Aldus PageMaker including versions of Lorem Ipsum.

The Above text is example text , like That i have several paragraphs with Bold Headings . I tried by Using The TextView to display all the information . But I want make Headings should be in bold & points should start with Bulled points .

How can i do this ? can any one give Basic Idea about this please .?

Thanks In Advance .

  • 1
    You need to use web view to make your work easier and simple. Just place all of your code in a html file and load that html file in the web view. Hope it helps. – if-else-switch Jun 19 '14 at 10:36
  • Text, how to include the fonts for HTML file , Currently i stored my Custom Fonts in Supported folder ? is it possible to call same font to the HTML file also ? Can you give me any example tutorial for this please ..? – user3744932 Jun 19 '14 at 11:52
  • 1
    Hi, for custom font you can use css like this Before that just include your fonts in the bundle and add it into plist file too. Go through this link http://stackoverflow.com/questions/2535338/using-a-uiwebview-can-i-use-a-custom-font – if-else-switch Jun 19 '14 at 11:55
  • Hi , I added the Html File Using the Web View , The Content is not displaying full ,to display the full HTML page content do i need to add any code for that .. ? – user3744932 Jun 19 '14 at 14:17
  • If everything in your HTML is correct then it will display the whole content. Do check whether you have written all of your content to be displayed inside the tag or not. – if-else-switch Jun 20 '14 at 04:46
  • Yes Finally i did it successfully , But i am facing small issue in that ,i.e, in the HTML File i have a 4 Hyperlinks so for that i gave linking like this Link. The thing is the link is not redirecting to the safari its loading on the same screen but i want the link should open with safari ? how can do this ? – user3744932 Jun 21 '14 at 08:20
  • 1
    For that you have to grab events in you code and open the link manually using openURL method of UIApplication sharedApplication, – if-else-switch Jun 23 '14 at 05:56
  • can you give me any reference tutorial or sample code please.. ? – user3744932 Jun 23 '14 at 06:20
  • Go through this link http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=4070 – if-else-switch Jun 23 '14 at 11:06

1 Answers1

3

You can use the Attributed Text property of the UITextView in the Property inspector and achieve the bold text (I don't know whether you can achieve the bullets in this way)

Text

Midhun MP
  • 103,496
  • 31
  • 153
  • 200
  • Thanks for your answer , In the Attributed Text property how to set Bold Text , I can see only Align Property , Text Color , Text Background color & More but i cannot See Bold Type . ? – user3744932 Jun 19 '14 at 11:15
  • @user3744932: select the text and click the font, select the bold attribute from there – Midhun MP Jun 19 '14 at 11:49