Questions tagged [nscfstring]

25 questions
7
votes
2 answers

Convert NSCFString to NSString

I am getting a dictionary from server myDictionary = { "rank":"1", "color":"red", "position":"middle" } Now I want to check the value of key "position" in if condition I am doing it like this if ([[myDictionary valueForKey:@"position"]…
Prashant Nikam
  • 2,253
  • 4
  • 17
  • 29
3
votes
0 answers

Spotify SPTAuth canHandleURL is crashing with NSInvalidArgumentException

I have upgraded Spotify from Beta6 to Beta9. One of the necessary changes to support the upgrade is to the canHandleURL method signature. The Beta6 signature was: canHandleURL: withDeclaredRedirectURL: The new signature removes…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
2
votes
3 answers

NSString or NSCFString in xcode?

I m taking a NSMutabledictionary object in NSString like this : NSString *state=[d valueForKey:@"State"]; Now sometimes state may be null and sometimes filled with text.So Im comparing it.While comparing state becomes NSString sometimes and…
Sindhia
  • 411
  • 3
  • 12
  • 33
1
vote
3 answers

NSMutableDictionary converted into __ NSCFString

I'm developing an iOS 4 application. I have a class with a NSMutableDictionary property: @interface CardHelper : NSObject { ... NSMutableDictionary* cards; ... } @property (nonatomic, readonly)…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
1
vote
1 answer

Having trouble retrieving images from PubNub didReceiveMessage Function in Swift App

I'm writing a Swift chat app using JSQMessageViewController as well as PubNub. I have no problem getting text messages in real time and display them correctly. But I'm stuck on retrieving image messages, I can send images without any problems but…
jackson
  • 81
  • 1
  • 9
1
vote
0 answers

iphone sdk: NSCFString does not match with value

I am using Kinvey Kit in one of my apps. While using query +(KCSQuery *)queryOnField:(NSString *)field withExactMatchForValue:(NSObject *)value, I try matching record with KCSUser userId. It does not match by using self.userId but if I do…
Saira
  • 65
  • 5
1
vote
0 answers

_NSCFConstantString latitude]: unrecognized selector sent to instance

for(int i=0;i<[self.printers count]; i++) { PublicPrivateEvent *printerselection = [printers objectAtIndex:i]; CGFloat latt = [printerselection.latitude floatValue]; //Here is broken CGFloat…
santa
  • 147
  • 1
  • 4
  • 16
0
votes
1 answer

Swift Userdefaults converting String to __NSCFString

I have code that save a dictionary of [String: Any] in UserDefaults. On retrieval String are changed to __NSCFString. I am using Mixpanel to track events and sends this dictionary as events properties. Now the problem is __NSCFString is not a valid…
Dawood Mujib
  • 337
  • 4
  • 14
0
votes
2 answers

Get server JSON response as a NSDictionary

I'm trying to get server response NSData into NSDictionary but it returns following NSCFString. NSError *error; NSDictionary* jsonDic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:&error]; And can't…
isuru
  • 3,385
  • 4
  • 27
  • 62
0
votes
0 answers

How to convert array of NSCFString to Array of NSCFNumber in swift?

I have fetched array (say contactNameList) from SQLITE which is array of NSCFString. I want to compare objects of contactNameList with array of Id(say bookIdArray) which is of Int type.Can anyone please guide me. Help will be appreciated.Thank you…
dev
  • 51
  • 1
  • 4
0
votes
1 answer

Tabgroup iOS tab won't open new view, gives Obj-C error

Currently working on getting the code for my app to run on the iOS side after hitting a milestone on Android. I have a tabgroup in my index.xml:
Rampancy
  • 45
  • 1
  • 6
0
votes
2 answers

Getting NSCFString objectAtIndexedSubscript with NSLog in cellForRowAtIndexPath

I've finished my app using this method and the last call I'm implementing is a simple JSON response which I need to parse and it is giving me: [__NSCFString objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x17005caa0' There…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
0
votes
0 answers

__NSCFString object not being output in NSLog statement

I have a variable passed to a method using type NSString * that is actually showing up in the debugger: po [myString class] __NSCFString If I po myString from a debugger prompt, I can see the value of the string. However, if I NSLog it, it does not…
Victor Engel
  • 2,037
  • 2
  • 25
  • 46
0
votes
2 answers

ios [__NSCFNumber length]: unrecognized selector sent to instance

i have created one custom cell and put button on it and button event is like this [cell.BtnRequest addTarget:self action:@selector(didTapButton:) forControlEvents:UIControlEventTouchUpInside]; and didtapbutton code is this -…
Ujesh
  • 1,698
  • 2
  • 23
  • 35
0
votes
0 answers

__CFNSString to NSString loses special chars

I have a weird issue. I have a UTF-8 encoded json which is converted to models via RestKit. When I view the contents of my model I get a nice string with special chars with phrases like "los kaartje €17,50 (o.a. te koop" (notice the €-sign) Now when…
Daan Olislagers
  • 3,253
  • 2
  • 17
  • 35
1
2