你好,歡迎來到IOS教程網

 Ios教程網 >> IOS訊息 >> 關於IOS >> iOS 基礎類解析 – NSNumber

iOS 基礎類解析 – NSNumber

編輯:關於IOS

NSNumber Class Reference

Inherits from NSValue : NSObject Conforms to NSCopying (NSValue)
NSSecureCoding (NSValue)
NSObject (NSObject) Framework /System/Library/Frameworks/Foundation.framework Availability Available in iOS 2.0 and later. Declared in NSDecimalNumber.h
NSValue.h Companion guides Number and Value Programming Topics
Property List Programming Guide Related sample code Advanced UISearchBar CryptoExercise ListAdder RosyWriter TheElements

Creating an NSNumber Object

  • + numberWithBool:
  • + numberWithChar:
  • + numberWithDouble:
  • + numberWithFloat:
  • + numberWithInt:
  • + numberWithInteger:
  • + numberWithLong:
  • + numberWithLongLong:
  • + numberWithShort:
  • + numberWithUnsignedChar:
  • + numberWithUnsignedInt:
  • + numberWithUnsignedInteger:
  • + numberWithUnsignedLong:
  • + numberWithUnsignedLongLong:
  • + numberWithUnsignedShort:

    Initializing an NSNumber Object

    • C initWithBool:
    • C initWithChar:
    • C initWithDouble:
    • C initWithFloat:
    • C initWithInt:
    • C initWithInteger:
    • C initWithLong:
    • C initWithLongLong:
    • C initWithShort:
    • C initWithUnsignedChar:
    • C initWithUnsignedInt:
    • C initWithUnsignedInteger:
    • C initWithUnsignedLong:
    • C initWithUnsignedLongLong:
    • C initWithUnsignedShort:

      Accessing Numeric Values

      • C boolValue
      • C charValue
      • C decimalValue
      • C doubleValue
      • C floatValue
      • C intValue
      • C integerValue
      • C longLongValue
      • C longValue
      • C shortValue
      • C unsignedCharValue
      • C unsignedIntegerValue
      • C unsignedIntValue
      • C unsignedLongLongValue
      • C unsignedLongValue
      • C unsignedShortValue

        Retrieving String Representations

        • C descriptionWithLocale:
        • C stringValue

          Comparing NSNumber Objects

          • C compare:
          • C isEqualToNumber:

            Accessing Type Information

            • C objCType


              Copyright ? 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-12-16

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved