iOS 基础类解析 - NSObject

iOS 基础类解析 - NSObject

太阳火神的美丽人生 (http://blog.csdn.net/opengl_es)

本文遵循“署名-非商业用途-保持一致”创作公用协议

转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS、Android、Html5、Arduino、pcDuino否则,出自本博客的文章拒绝转载或再转载,谢谢合作。


NSObject Class Reference

Inherits from
none (NSObject is a root class)
Conforms to
NSObject
Framework
/System/Library/Frameworks/ Foundation.framework
Availability
Available in iOS 2.0 and later.
Declared in
NSKeyedArchiver.h
NSObject.h
NSRunLoop.h
NSThread.h
objc/NSObject.h
Related sample code
AdvancedURLConnections
AVPlayerDemo
CryptoExercise
PhotosByLocation
TheElements

Initializing a Class

  • + initialize
  • + load

Creating, Copying, and Deallocating Objects

  • + alloc
  • + allocWithZone:
  • – init
  • – copy
  • + copyWithZone:
  • – mutableCopy
  • + mutableCopyWithZone:
  • – dealloc
  • + new

Identifying Classes

  • + class
  • + superclass
  • + isSubclassOfClass:

Testing Class Functionality

  • + instancesRespondToSelector:

Testing Protocol Conformance

  • + conformsToProtocol:

Obtaining Information About Methods

  • – methodForSelector:
  • + instanceMethodForSelector:
  • + instanceMethodSignatureForSelector:
  • – methodSignatureForSelector:

Describing Objects

  • + description

Discardable Content Proxy Support

  • – autoContentAccessingProxy

Sending Messages

  • – performSelector:withObject:afterDelay:
  • – performSelector:withObject:afterDelay:inModes:
  • – performSelectorOnMainThread:withObject:waitUntilDone:
  • – performSelectorOnMainThread:withObject:waitUntilDone:modes:
  • – performSelector:onThread:withObject:waitUntilDone:
  • – performSelector:onThread:withObject:waitUntilDone:modes:
  • – performSelectorInBackground:withObject:
  • + cancelPreviousPerformRequestsWithTarget:
  • + cancelPreviousPerformRequestsWithTarget:selector:object:

Forwarding Messages

  • – forwardingTargetForSelector:
  • – forwardInvocation:

Dynamically Resolving Methods

  • + resolveClassMethod:
  • + resolveInstanceMethod:

Error Handling

  • – doesNotRecognizeSelector:

Archiving

  • – awakeAfterUsingCoder:
  • – classForCoder
  • – classForKeyedArchiver
  • + classFallbacksForKeyedArchiver
  • + classForKeyedUnarchiver
  • – replacementObjectForCoder:
  • – replacementObjectForKeyedArchiver:
  • + setVersion:
  • + version

Deprecated Methods

  • – finalize


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


你可能感兴趣的:(iOS 基础类解析 - NSObject)