Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7831345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:41:00+00:00 2026-06-02T11:41:00+00:00

i have some text which is separated by space@ .i displayed this array from

  • 0

i have some text which is separated by space@” “.i displayed this array from DB named delegate.allSelectedVerseEnglish (array name) to a textview in the below formate.

self.multiPageView.text=[delegate.allSelectedVerseEnglish componentsJoinedByString:@" "];

multipageview is the textview,my need is to put numbers between these space.means i have 3 text which is separated by space for e.g.: my name is icoder my old is twenty my passion is coding etc etc,i need to set this text to 1 my name is icoder 2 my old is twenty 3 my passion is coding etc etc,how can i appen like this.i already got the text correctly but need in this formate.the DB does not have the numbers,i have to put numbers between separate text.

is anyone have the idea how to implement this..i hope you understand my question.
thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:41:03+00:00Added an answer on June 2, 2026 at 11:41 am

    Updated: I have rewritten this to use an NSMutableString as this won’t hammer the autorelease pool like my original version.

    NSMutableString *combined = [NSMutableString string];
    for(NSUInteger idx = 0; idx < [delegate.allSelectedVerseEnglish count]; idx++) {
        [combined appendFormat:@" %d %@", 
                                idx + 1, 
                                [delegate.allSelectedVerseEnglish objectAtIndex:idx]];
    }
    
    self.multiPageView.text = combined;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div which has some text, but according to different situations this
I have some xml files that contain text, which are displayed on my website.
I have a script which collects an image, link and some text content from
I have a edittext in which some text are selected . I want to
I have a JeditorPane which has some text in HTML format. When I execute
Story: I have a link which has some text. A part of the link
I have a custom UITableViewCell which has an image & and some text. When
Hi All, I have a web-view in my application which displays some text with
I have a web page with a read-only text box which shows some HTML
I have a huge line-separated text file and I want to make some calculations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.