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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:28:04+00:00 2026-05-16T16:28:04+00:00

I have a problem with NSNumber : I don’t understand how to increment and

  • 0

I have a problem with NSNumber: I don’t understand how to increment and decrement it! I’ve tried int with [NSNumber intValue] and so on, but it didn’t work!!!! I just want a page counter which can be converted to an NSNumber at the end.

My second problem is displaying a (partially) transparent image in an UIImageView. It has ever a (white) background.

Thanks for answering,
Le Milonkh

  • 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-16T16:28:04+00:00Added an answer on May 16, 2026 at 4:28 pm

    HI there

    don’t use nsnumbers, use ints. Much easier… (NSNumber is merely a wrapper for storing numbers, whereas int provides the default set of C based mathematical interfaces you are looking for, with relative ease – I’m sure you can do math with NSNumber -> although many people say NSDecimal is better. I say use floats, ints and doubles).

    int pagenumber;
    for(pagenumber = 0; pagenumber < 5; pagenumber++){
        NSLog(@"%i", pagenumber);
    }
    

    then if you really need it in an NSNumber then do:

    NSNumber *pagenumberns = [NSNumber numberWithInt:pagenumber];

    In answer to your second question I have never had that problem, but try doing: [ImageView setOpaque:no] and [ImageView setBackgroundColor:[UIColor clearColor]];

    Hope some of that helps.

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

Sidebar

Related Questions

I have a problem I don't understand regarding UIViews and Core Animation. Here's what
I have problem SIMILAR to preventing form data reposting, but not quite the same
I have a crazy problem when comparing an NSInteger to int, as follows: NSInteger
I have got a problem with converting an NSNumber value to an NSString MyPowerOnOrNot
I have a problem with my app, which run well on the simulator but
I have some .c files that don't automatically highlight in vim. This problem only
i have no idea how to solve my problem, i tried to make 100
Have a problem where my Label is not appearing. But the slider does. Its
I have problem with http://abfoodpolicy.com/ . In IE 8 and 9 the right sidebar
I have problem with my query on C, I’m using the oci8 driver. This

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.