Questions tagged [nscfstring]
25 questions
0
votes
0 answers
NSMutableArray changes to NSCFString
When I try to add some string values to a NSMutableArray it shows following exception.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString addObject:]: unrecognized selector sent to instance
here is my…
0
votes
1 answer
NSCFConstantString size trying to set an Image
I'm making an UITableView with an UIIMage per cell.
To set a different Image per cell I loaded all images in project and made an array with all images _flagsArray = [NSArray arrayWithObjects: @"flag_Italia.png", @"flag_USA", nil];.
In…

Matte.Car
- 2,007
- 4
- 23
- 41
0
votes
1 answer
JSONKit returning unwanted NSCFString rather than NSDictionary
I've been pulling my hair out tried to figure out whats wrong here, for some reason JSONKit isn't giving me the dictionary I need so I can reference particular key/value pairs within the plist.
Instead its displaying as a NSCFString which obviously…

Tadhg
- 23
- 3
0
votes
2 answers
[__NSCFString objectAtIndex:]: unrecognized selector sent to instance Error
I tried loading the contents of the bucket into a NSTableView using Arraycontroller. I ended uo with this error:
-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x1006da970
Here is the code I used to check.
-…

DesperateLearner
- 1,115
- 3
- 19
- 45
0
votes
1 answer
__NSCFString setHidden: unrecognized selector sent to instance
I have got some UILabels which have been declared as property and synthesized. I am hiding those labels in viewDidLoad. After some calculations, when I try to unhide them using hidden property, app crashes with error mentioned in the subject. I…

NightFury
- 13,436
- 6
- 71
- 120
0
votes
0 answers
Strange __NSCFString error
I have been getting some reports with this error:
-[__NSCFString replaceOccurrencesOfString:withString:options:range:]: nil argument
I have search in my code for this method, but I am not using it all. My assumption is that another method…

Jan S.
- 10,328
- 3
- 31
- 36
0
votes
2 answers
Passing String with Notification and then pass to class
I have a question I work for an ipad application, in this app on main view I have an instance of a custom uitableviewcontroller, on row click I post a notification that pass an object and run a method
- (void) drawWebView:(id) sender {
…

francesco.venica
- 1,703
- 2
- 19
- 54
0
votes
1 answer
Range or index out of bounds (App is crashing)
I have an app with ads banner (inner-active) in every view controller (4 views) and i keep getting this error after 2-3-4 minutes that my app is running:
'NSRangeException', reason: '*** -[__NSCFString substringToIndex:]: Range or index out of…

Maor Zohar
- 592
- 5
- 17
0
votes
1 answer
Getting an error when using replaceOccuranceOfString function
[str replaceOccurrencesOfString: withString: options: range:
[str replaceOccurrencesOfString:@"'" withString:@"!~" options:0 range:NSMakeRange(0,str.length)]
I am using this function to replace ' symbol in my NSMutableString with !~ symbol so that I…

Hemang
- 26,840
- 19
- 119
- 186
-3
votes
1 answer
[__NSCFString setView:]: unrecognized selector sent to instance 0x8292720
I have searchBar and searchDisplayController put in tabbar that is main tabbar.
When I open new viewcontroller by pushing there has no problem.
mainTabbar -> navigationController+searchController -(push after
rowdidselect)-> newVC -(push)-> newVC…

user1047504
- 578
- 7
- 14