Search Results

Search found 4 results on 1 pages for 'semix'.

Page 1/1 | 1 

  • underline text in UIlabel

    - by semix
    How to underline a text that could be multiple lines of string? I find some people suggest UIWebView, but it is obviously too heave a class for just text rendering. My thoughts was to figure out the start point and length of each string in each line. And draw a line under it accordingly. I meet problems at how to figure out the length and start point forthe string. Can anybody help me on this? I try to use UILable::textRectForBounds, this should be the drawing bounding rect for the text right? Then I have to work on the aligment ? How can I get the start point of each line when it is center-justified and right justfied? I am new here, so thank in advance.

    Read the article

  • [IPhone] How to get the lenth of each line of the text when wordwrap is considered.

    - by semix
    Hi there. I meet a problem as follows: I have a NSString displayed in a UILabel into multiple lines with WordWrap mode = UILineBreakModeWordWrap, rendered into 2 lines NSString* myText = @"I am here Work". "I am here_" //Line 1. _ is for blank. "Work" //Line 2. Is there anyway for me to get the width for the substring 'I am here'? and also for 2nd line 'Work' If that's hard, How can I know which part of the whole string is in line 1? and which part is in line 2? thanks in advance.

    Read the article

  • How to draw underline text with UIWebView

    - by semix
    Hi I am new to IPhone paltfom. And I wonder how can I underline a text with UIWebView? I know this is quite simple, but I couldn't get any clue from the menual can anybody show me some code snippet? The text should be a passed-in parameter. thank you very much.

    Read the article

1