Instance Method

decodeCGRectForKey:

Decodes and returns the Core Graphics rectangle structure associated with the specified key in the coder’s archive.

Declaration

- (CGRect)decodeCGRectForKey:(NSString *)key;

Parameters

key

The key that identifies the rectangle.

Return Value

The CGRect structure.

Discussion

Use this method to decode a rectangle that was previously encoded using the encodeCGRect:forKey: method.

See Also

Decoding Geometry-Based Data

- decodeCGAffineTransformForKey:

Decodes and returns the Core Graphics affine transform structure associated with the specified key in the coder’s archive.

- decodeCGPointForKey:

Decodes and returns the Core Graphics point structure associated with the specified key in the coder’s archive.

- decodeCGSizeForKey:

Decodes and returns the Core Graphics size structure associated with the specified key in the coder’s archive.

- decodeCGVectorForKey:

Decodes and returns the Core Graphics vector data associated with the specified key in the coder’s archive.

- decodeDirectionalEdgeInsetsForKey:

Decodes and returns the UIKit directional edge insets structure associated with the specified key in the coder’s archive.

- decodeUIEdgeInsetsForKey:

Decodes and returns the UIKit edge insets structure associated with the specified key in the coder’s archive.

- decodeUIOffsetForKey:

Decodes and returns the UIKit offset structure associated with the specified key in the coder’s archive.