Sdílet prostřednictvím


MSMutableProtectedData appendData:error method

Appends the content of another plaintext object to the receiver. First the data object is protected, and then the cipher text data is appended to the receiver.

Signature

- (BOOL)appendData:(NSData *)other error:(NSError **)errorPtr;

Parameters

Name Datatype Notes
other
NSData *
Required. The data object containing the plaintext data to be protected and appended.
errorPtr
NSError **
Optional. If an error occurs, contains the error code and details.

Returns

Type: BOOL

YES if the operation is successful; otherwise, NO. If the operation isn't successful, the errorPtr parameter references an NSError object that contains more information about the error.

Defined in

MSMutableProtectedData.h

Supported Platforms

Minimum supported OS versions
iOS 7.0 and OS X 10.8