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 7914791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:14:12+00:00 2026-06-03T14:14:12+00:00

I have this: NSArray *tags = [NSArray arrayWithObjects: [NSNumber numberWithInteger:0], [NSNumber numberWithInteger:1], [NSNumber numberWithInteger:2],

  • 0

I have this:

  NSArray *tags =  [NSArray arrayWithObjects:
                       [NSNumber numberWithInteger:0],
                       [NSNumber numberWithInteger:1], 
                       [NSNumber numberWithInteger:2],
                       [NSNumber numberWithInteger:3],
                       [NSNumber numberWithInteger:4],
                       [NSNumber numberWithInteger:5],
                       nil];

And I’m having a hard time trying to access each item as an int or NSInteger. What should I do?

  • 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-06-03T14:14:14+00:00Added an answer on June 3, 2026 at 2:14 pm

    Call intValue

    NSInteger myInt = [[tags objectAtIndex:1] intValue];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of NSTimeIntervals like this: NSArray *mySet = [NSArray arrayWithObjects: [NSNumber
I have this code NSDictionary *tempDict = [NSDictionary dictionaryWithObjects: [NSArray arrayWithObjects:@authorId,authorName,authorDescription,@image,nil] forKeys: [NSArray arrayWithObjects:@id,@name,@desc,@image,nil]];
i have this method - NSArray *objects = [NSArray arrayWithObjects:appDelegate.UserID,itemName.text,@1,@1,itemDegem.text,itemDescription.text, nil]; NSArray *keys =
I have this: _launcherView.pages = [NSArray arrayWithObjects: [NSArray arrayWithObjects: [[[TTLauncherItem alloc] initWithTitle:@New Note image:@bundle://Icon.png
i have an array like this: NSArray *arr = [[NSArray alloc]initWithObjects:@1,@2,@3,@4,@5,@6,nil]; how i can
I have this code: - (void)viewDidLoad { [super viewDidLoad]; NSArray *image = [NSArray arrayWithObjects:[UIImage
As an example if I have this array: _mode = [NSArray arrayWithObjects: [NSArray arrayWithObjects:@1,
I have an NSArray full of NSDictionary object. This structure is built from a
I have an NSMutableArray of NSArray's inside it. This is my current structure: Paused
I have an NSArray which contains NSDictionary objects. Each of these NSDictionary objects contains

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.