Discussion in 'iOS Development' started by Chicken, Nov 2, 2008.
How can I collect the information from a string thats in an array ????
What? Your question is incredibly confusing and unclear. All a string is is an array of chars. Are you asking how to get information from the string? Are you asking to get information from a string and get it into an array? Or, are you asking hot to get a string from an array?
why do you have to always get mad at people
he always complains about what people are doing
like i asked a question
and i get a response telling me that i have no idea what i am doing, and that i need to read more tuts, and stuff
like if they guy is not gonna give help, then don't write
he asked him to ask a more clear question, he wasn't bashing anyone.
He didn't say you had no idea what you were doing, you just asked the question in a way that could be interpreted in several ways, and he wanted to know which way you were phrasing it. That's all.
he was telling ME that i had no idea what i was doing
Because if YOU have NO idea about what your doing, then you MUST be stopped! If YOU aren't then YOU will make apps, that have leaks, an all sorts of other problems.
i was starting off making one of my first apps
then HE comes in where I needed help, and says that i need to look around more, and such
instead of acutally helping me
sorry for the huge confusion i need to get the information from a string
You have a number of options:
- (unichar)characterAtIndexPlease Register or Log in to view imagesNSUInteger)index;
- (void)getCharactersPlease Register or Log in to view imagesunichar *)buffer;
- (void)getCharactersPlease Register or Log in to view imagesunichar *)buffer rangePlease Register or Log in to view imagesNSRange)aRange; //I'd use this one.
- (BOOL)getBytesPlease Register or Log in to view imagesvoid *)buffer maxLengthPlease Register or Log in to view imagesNSUInteger)maxBufferCount usedLengthPlease Register or Log in to view imagesNSUInteger *)usedBufferCount encodingPlease Register or Log in to view imagesNSStringEncoding)encoding optionsPlease Register or Log in to view imagesNSStringEncodingConversionOptions)options rangePlease Register or Log in to view imagesNSRange)range remainingRangePlease Register or Log in to view imagesNSRangePointer)leftover;
More information on each can be found here:
Please Register or Log in to view images
Separate names with a comma.