你好,歡迎來到IOS教程網

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

iOS 基礎類解析 – NSDate

編輯:關於IOS

NSDate Class Reference

Inherits from NSObject Conforms to NSCopying
NSSecureCoding
NSObject (NSObject) Framework /System/Library/Frameworks/Foundation.framework Availability Available in iOS 2.0 and later. Declared in NSDate.h Companion guides Date and Time Programming Guide
Property List Programming Guide Related sample code MVCNetworking TableView Fundamentals for iOS TopSongs URLCache XMLPerformance

Creating and Initializing Date Objects

  • + date
  • + dateWithTimeIntervalSinceNow:
  • + dateWithTimeInterval:sinceDate:
  • + dateWithTimeIntervalSinceReferenceDate:
  • + dateWithTimeIntervalSince1970:
  • C init
  • C initWithTimeIntervalSinceNow:
  • C initWithTimeInterval:sinceDate:
  • C initWithTimeIntervalSinceReferenceDate:
  • C initWithTimeIntervalSince1970:

    Getting Temporal Boundaries

    • + distantFuture
    • + distantPast

      Comparing Dates

      • C isEqualToDate:
      • C earlierDate:
      • C laterDate:
      • C compare:

        Getting Time Intervals

        • C timeIntervalSinceDate:
        • C timeIntervalSinceNow
        • + timeIntervalSinceReferenceDate
        • C timeIntervalSinceReferenceDate
        • C timeIntervalSince1970

          Adding a Time Interval

          • C dateByAddingTimeInterval:
          • C addTimeInterval: Deprecated in iOS 4.0

            Representing Dates as Strings

            • C description
            • C descriptionWithLocale:


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

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