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 8276229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:18:55+00:00 2026-06-08T08:18:55+00:00

I make an array of several words, then I put all words into a

  • 0

I make an array of several words, then I put all words into a mutable string, and then a mutable array of every character of this string. However, “wordSplitted” that is a mutable array of the characters give random scrambled characters at each startup of app in Simulator, showing in the log:

2012-07-22 09:12:01.108 xxx[4484:b603] wordSplitted contains: (
    "",
    "",
    "\U221e",
    "-",
    G,
    N,
    P,
    "",
    ""
)

It should be b, i, l, h, u, k, s, k, j.

   NSArray *threeWords = [NSArray arrayWithObjects:@"bil", @"huk", @"skje", nil];


    NSMutableString *allTogether = [[NSMutableString alloc]init];

    /*
    for (NSString *s in threeWords)
    {
        [allTogether appendString:s];
    }
     */

    for (int b = 0; b < [threeWords count]; b++)
    {
        [allTogether appendString:[threeWords objectAtIndex:b]];
    }
    NSLog (@"allTogether contains %@", allTogether);

    //[threeWords release];
    [allTogether release];

    NSMutableArray *wordSplitted = [[NSMutableArray alloc]init];

//this function gives me headache
        for (int a = 0; a < 9; a ++)
        {
            //gives also scrambled characters

        //[wordSplitted addObject:[NSString stringWithFormat:@"%C",[allTogether characterAtIndex:a]]];

        NSRange range = {a,1};

        [wordSplitted addObject:[allTogether substringWithRange:range]];

    }

    NSLog (@"wordSplitted contains: %@", wordSplitted);

How can I display normal characters like alphabets?

  • 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-08T08:18:57+00:00Added an answer on June 8, 2026 at 8:18 am

    You call [allTogether release] but then reference it later on. Normally this would cause your program to crash, but something about the CFMutableArray backing makes this not always happen.

    Basically, don’t release the array until you’re sure you’re done using it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to make an array-based linear list, then I compiled this: char
I have string. I then split the string to make an array. I use
I want to make an array that contains several arrays that store results of
I am trying to make an array of strings and then pluck a random
I have several variables coming from an array in $POST_['array'] i wish to make
I have a 2D array that I have split up into several 1D arrays
Currently, I'm building several arrays in Powershell, but to make the code more portable,
How can I make an array with 400 elements of type myClass and pass
I want to make an array in PHP but it should be in specific
I want to make an array of specific types of files with .txt that

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.