nsrange Questions
3
Solved
I have to match the number of occurrences of n special characters in a string.
I thought to create an array with all these chars (they are 20+) and create a function to match each of them.
I just h...
Appointive asked 29/7, 2011 at 16:17
4
Solved
I need NSRange objects for the position of each uppercase letter in a given NSString for input into a method for a custom attributed string class.
There are of course quite a few ways to accompli...
Bellda asked 11/1, 2011 at 1:6
2
Solved
I'm having a problem with NSRange. Here is my code:
NSRange range = [[[NSHTTPCookie requestHeaderFieldsWithCookies:[[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:[NSURL URLWithString...
Sequestered asked 30/11, 2010 at 3:4
1
Solved
I want to select some objects from an array. Therefore I'm using begin and end indexes of my selection.
NSLog(@"start:%d\nend:%d", startIndex, endIndex);
NSIndexSet *myIndexes = [NSIndexSet index...
Overbearing asked 25/10, 2010 at 20:18
4
Solved
Here's what I want to do:
NSRange r = NSMakeRange(0,5);
id a = [NSMutableArray a];
[a addObject: r]; // but NSRange is not a NSObject *
With a boolean, I'd use code like this:
[a addObject: [NS...
Emelineemelita asked 22/10, 2010 at 17:2
1
Solved
How can I select a string from the beginning until a specified character?
For example, in the following a news headline...
someString = @"Los Angeles, California - Apple announces something, stoc...
Concettaconcettina asked 6/9, 2010 at 22:0
© 2022 - 2024 — McMap. All rights reserved.