NSObject

suggest change

@interface NSString : NSObject (NSObject is a base class of NSString class).

You can use below methods for allocation of string class:

- (instancetype)init

+ (instancetype)new

+ (instancetype)alloc

Copying an object:

- (id)copy;

- (id)mutableCopy;

Comparing objects:

- (BOOL)isEqual:(id)object

To get superclass of current class :

superclass

Checking the class:

- (BOOL)isKindOfClass:(Class)aClass

Manual reference counting only. retain, release, and autorelease are unavailable under ARC. retainCount still exists, but it is not a reliable way to manage memory under either model:

- (instancetype)retain OBJC_ARC_UNAVAILABLE;

- (oneway void)release OBJC_ARC_UNAVAILABLE;

- (instancetype)autorelease OBJC_ARC_UNAVAILABLE;

- (NSUInteger)retainCount

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents