Questions tagged [nscfnumber]
5 questions
                    
                    3
                    
            votes
                
                2 answers
            
        Objective-C. NSString is changed to NSCFNumber
I have some code in Objective-C. I think, I received type NSString, but when I try to save it in Core Data, I get a user.clientID = clientID; error, like:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:…
        
        Peter
        
- 55
 - 1
 - 6
 
                    2
                    
            votes
                
                0 answers
            
        -[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000000002
I knew there are lots of same kind of question available but I am facing something different. I got this error while saving the data into core data. First let me tell you my scenario. I am calling an API and store it into database. There is no issue…
        
        Tapas Pal
        
- 7,073
 - 8
 - 39
 - 86
 
                    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
                
                2 answers
            
        Can't get key value as String from metadata
I'm grabbing metadata from an MPMediaItem like this:
let url = item.value(forProperty:MPMediaItemPropertyAssetURL) as? NSURL
let asset = AVURLAsset(url: url! as URL, options: nil)
let metaArray = asset.metadata
for metadata in metaArray{
   …
        
        wayneh
        
- 4,393
 - 9
 - 35
 - 70
 
                    0
                    
            votes
                
                1 answer
            
        How can check If result is __NSCFNumber?
I'm running evaluate function to run javascript. However, It runs another javascript code inside it so that I need to wait sometime to get the original result. Till the original result, It returns a number. I can wait for the result but I need to…
        
        Emre Önder
        
- 2,408
 - 2
 - 23
 - 73