Appending a string with string in ios
<p>Ha ii friends,i am in a problem with some text sharing to evernote,sharing evernote is sucess,but here is my current situation with code.i have a UITableView which has some text and title for that corresponding text.when the share button is clicked it will share the text onebyone to evernote website,but the Title remains static.there i get the first title name along with diffrent text.my code for this is.in my tablview
inRowATIndexpath</p>

<pre><code>NSMutableString *strr=[[NSMutableString alloc]initWithString:[appDelegate.indexArray objectAtIndex:indexPath.section]];
    cell.textLabel.text =strr ;
cell.textLabel.text = [appDelegate.indexArray objectAtIndex:row];
cell.textLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
cell.textLabel.textColor = [UIColor brownColor];


    [appDelegate.notesArray objectAtIndex:row]];
    //cell.detailTextLabel.text =notes;
cell.detailTextLabel.font = [UIFont fontWithName:@"Georgia" size:14.0]; 
cell.detailTextLabel.textColor = [UIColor darkGrayColor];
cell.detailTextLabel.text = [appDelegate.notesArray objectAtIndex:row];
</code></pre>

<p>appDelegate.indexArray is the title content for each cell and appDelegate.notesArray  has the textnote for the corresponding titles. 
 in shareButton click</p>

<pre><code> NSMutableString *str = [[NSMutableString alloc] initWithString:@"NOTES:"]; 
    for (int i = 0; i&lt;[appDelegate.notesArray count]; i++) { 
        NSString * aString = [[NSString alloc] initWithString:[appDelegate.notesArray objectAtIndex:i]] ;
        NSString * ENML= [NSString stringWithFormat:@"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\"&gt;\n&lt;en-note&gt;%@",aString];

    ENML = [NSString stringWithFormat:@"%@%@", ENML, @"&lt;/en-note&gt;"];
    NSLog(@"%@", ENML);

    // Adding the content &amp; resources to the note
    [note setContent:ENML];
</code></pre>

<p>this will give the one by one uplode of notetext.but for title i include this code</p>

<pre><code>NSMutableString *strtitle = [[NSMutableString alloc] initWithString:@"myBibleApp"]; 
    for (int i = 0; i&lt;[appDelegate.indexArray count];i++ ) { 
        NSString * aStringtitle = [[NSString alloc] initWithString:[appDelegate.indexArray objectAtIndex:i]] ;
       /* NSString *ENMLtitle = [NSString stringWithFormat:@"%@%@", aStringtitle];
        NSLog(@"%@", ENMLtitle);*/

    note.title = aStringtitle;
</code></pre>

<p>but here is my problem it uplode the title and text in double.that means ,i have one text with title.when i click the sharebutton it uplode twise time.1=2,2=4,3=6 like that.
but only addding the title i get this problem.if i put the title static,note.title =@"statictitle".it will not repete the uplode.how can i append the string in correct way?.please help me.
Thanks in advance.</p>
