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

  • SEARCH
  • Home
  • 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 6146759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:59:54+00:00 2026-05-23T18:59:54+00:00

Hi all guys ,I am new in objective c and I need help, I

  • 0

Hi all guys ,I am new in objective c and I need help, I read from my xml
file and I want convert my NSString to bool and NSString to date and
Nsstring to long

NSArray *names = [partyMember elementsForName:@"price"];
        if (names.count > 0) {
            GDataXMLElement *firstName = (GDataXMLElement *) [names objectAtIndex:0];
            price = firstName.stringValue;
        } else continue;

        NSArray *names1 = [partyMember elementsForName:@"date"];
        if (names1.count > 0) {
            GDataXMLElement *firstName1 = (GDataXMLElement *) [names1 objectAtIndex:0];
            date = firstName1.stringValue;

    NSArray *names1 = [partyMember elementsForName:@"test"];
        if (names1.count > 0) {
            GDataXMLElement *firstName1 = (GDataXMLElement *) [names1 objectAtIndex:0];
            test = firstName1.stringValue;
  • 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-23T18:59:55+00:00Added an answer on May 23, 2026 at 6:59 pm

    For the BOOL
    A string is NO if its either nil or length 0. Otherwise its YES.

    NSDateFormatter’s dateFromString will convert strings to dates. You set it up with a c style formatter.

    For the long use longValue as in long long myval = [mystring longLongValue];

    NSString has several converters
    – doubleValue
    – floatValue
    – intValue
    – integerValue
    – longLongValue
    – boolValue

    Use as required.

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

Sidebar

Related Questions

hello guys I am trying to extract all the anchor links from aol but
hello guys i am try to eliminate all the duplicate strings from a string
Hey guys, I am just trying to pull all the records from my database
Okay guys, I have read through all the other posts and question on jQuery
Hay guys, i want to use something like this users = User.objects.all() but i
Would like to know from all you guys what do you think about my
I want to open new tab in all browser. I had written the following
Hey guys I need a tad bit of help. I need my streamwriter to
Hi guys this will be my first post and am pretty new to Objective-C
Hello guys I am new in Yii framework and first of all what I

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.