Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6363023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:59:00+00:00 2026-05-24T23:59:00+00:00

I get to array value from web service. This array is 1 or more

  • 0

I get to array value from web service. This array is 1 or more than 1-element array.If tempArra is 1 dimesional array and then If I want to transfer the data in the array to another array(garbageDatesFor01) Then I get the error

EDIT: returning to the web service responses in 2 ways

RESPONSE 1

(
    (
    "2011-08-03",
    "2011-08-17"
    )
)

OR

RESPONSE 2
2011-08-04

NSArray *garbageDatesFor01=[[NSArray alloc] initWithArray:tempArr];

2011-08-26 18:43:35.689 AOK[1846:207] -[NSCFString count]: unrecognized selector sent to instance 0x990d8f0
2011-08-26 18:43:35.691 AOK[1846:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString count]: unrecognized selector sent to instance 0x990d8f0'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x015d25a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01726313 objc_exception_throw + 44
    2   CoreFoundation                      0x015d40bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x01543966 ___forwarding___ + 966
    4   CoreFoundation                      0x01543522 _CF_forwarding_prep_0 + 50
    5   CoreFoundation                      0x01535d87 -[NSArray initWithArray:] + 39
    6   TwenteMilieu                        0x0001323a -[ForgottenContainerT1 connectionDidFinishLoading:] + 3750
    7   Foundation                          0x00113112 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 108
    8   Foundation                          0x0011306b _NSURLConnectionDidFinishLoading + 133
    9   CFNetwork                           0x0117148e _ZN19URLConnectionClient23_clientDidFinishLoadingEPNS_26ClientConnectionEventQueueE + 220
    10  CFNetwork                           0x0123c6e1 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 293
    11  CFNetwork                           0x01167c80 _ZN19URLConnectionClient13processEventsEv + 100
    12  CFNetwork                           0x01167acf _ZN17MultiplexerSource7performEv + 251
    13  CoreFoundation                      0x015b38ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
    14  CoreFoundation                      0x0151188b __CFRunLoopDoSources0 + 571
    15  CoreFoundation                      0x01510d86 __CFRunLoopRun + 470
    16  CoreFoundation                      0x01510840 CFRunLoopRunSpecific + 208
    17  CoreFoundation                      0x01510761 CFRunLoopRunInMode + 97
    18  GraphicsServices                    0x01b411c4 GSEventRunModal + 217
    19  GraphicsServices                    0x01b41289 GSEventRun + 115
    20  UIKit                               0x0037fc93 UIApplicationMain + 1160
    21  TwenteMilieu                        0x00002644 main + 102
    22  TwenteMilieu                        0x000025d5 start + 53
)
terminate called after throwing an instance of 'NSException'
Current language:  auto; currently objective-c
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:59:00+00:00Added an answer on May 24, 2026 at 11:59 pm

    The important line is :

    2011-08-26 18:43:35.689 TwenteMilieu[1846:207] -[NSCFString count]: unrecognized selector sent to instance 0x990d8f0
    

    It means you are calling count on a string. The object you think is an array is actually a string.

    From looking at your code, tempArr could be either an array or a string. Try this:

    if ([tempArr isKindOfClass:[NSArray class]])
    {
        // Handle array case
    }
    else if ([tempArr isKindOfClass:[NSString class]])
    {
        // Handle string case
    }
    

    It’s probably a good idea to change the name of tempArr to something else, like tempResponse or similar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get the value of my integer array, at an index. The
I have used web service and get the response as the JSON. I want
How can I get an array of values from an associative array ? Associate
I'm trying to get the values from a pointer to a float array, but
Trying to get a value out of 2d array inside of a hash and
How to make web service methods return string value in lines format? My web
I am calling a web service (using SPServices) to get all of my items
This is a code from my c# web application here [ Response.Write(match.Groups[1]); ] i
I am getting the dynamic value from a web server like article desc, date,title
I have the following jquery which reads from the excellent geonames.org web service: $('#<%=txtFindMyCity.ClientID%>').autocomplete(http://ws.geonames.org/searchJSON,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.