Questions tagged [nsinteger]

An NSInteger is a data type in Objective-C. It is used to describe an integer.

An NSInteger is data type in Objective-C used to describe an integer. When building 32-bit applications, NSInteger is a 32-bit integer. A 64-bit application treats NSInteger as a 64-bit integer.

258 questions
-3
votes
1 answer

What is the easiest way to keep track of scores?

I'm looking to have a system where it updates the score the user has if they get the answer right in a multiple choice question. I have an IBAction that runs when the user selects the right choice and I want it to update the score. i.e. score + 2…
user1282180
  • 1,103
  • 3
  • 11
  • 20
-4
votes
5 answers

What is the difference between primitive data type vs an non primitive data type(apple defined data type)?

What's the basic difference between the two..? it would be nice if can someone explain using the example of NSInteger and NSNumber.. Thanks
Ankit Srivastava
  • 12,347
  • 11
  • 63
  • 115
-5
votes
2 answers

how to detect if NSInteger is between 10 and 20

Hi I have tried multiple things combining knowledge of mine and the internet but I cannot find a way to check if an NSInteger is between 10 and 20. Would it be something like this? (it didn't work) if (FXVolumeSlider.value == 10-20) {} Thanks in…
OnkaPlonka
  • 1,232
  • 10
  • 19
1 2 3
17
18