Appending data in UITextField programmatically
<p>I am creating a report &amp; printing the same on a UITextView.My report has some titles and there respective subtitles. I am printing 1st title then its subtitle &amp; then second title and its subtitle and so on. I want different font and font sizes for the titles and subtitles.
But the problem is the text field always prints the last subtitle.If any one know solution to this problem,let me know.</p>

<p>Here is what i have dome in my .m file</p>

<pre><code>     - (void) printData {
       // data is UITextView object
       [data setFont:[UIFont fontWithName:@"Helvetica" size:15]];
       NSString *title = @"TITLE" ;
       data.text = title;
       [data setFont:[UIFont fontWithName:@"Arial" size:15]];
       NSString *subtitle = @"SUBTITLE" ;
       data.text = subtitle;
     }
</code></pre>
