NSValue UIKit Additions Reference
| Inherits from | |
| Framework | /System/Library/Frameworks/UIKit.framework |
| Availability | Available in iOS 2.0 and later. |
| Declared in | UIGeometry.h |
Overview
This category adds methods to the Foundation framework’s NSValue class. The methods in this category let you represent geometry-based data using an NSValue object.
Tasks
Creating an NSValue
-
+ valueWithCGPoint: -
+ valueWithCGRect: -
+ valueWithCGSize: -
+ valueWithCGAffineTransform: -
+ valueWithUIEdgeInsets: -
+ valueWithUIOffset:
Accessing Data
Class Methods
valueWithCGAffineTransform:
Creates and returns a value object that contains the specified affine transform data.
Parameters
- transform
The value for the new object.
Return Value
A new value object that contains the affine transform data.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hvalueWithCGPoint:
Creates and returns a value object that contains the specified point structure.
Parameters
- point
The value for the new object.
Return Value
A new value object that contains the point information.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hvalueWithCGRect:
Creates and returns a value object that contains the specified rectangle structure.
Parameters
- rect
The value for the new object.
Return Value
A new value object that contains the rectangle information.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hvalueWithCGSize:
Creates and returns a value object that contains the specified size structure.
Parameters
- size
The value for the new object.
Return Value
A new value object that contains the size information.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hvalueWithUIEdgeInsets:
Creates and returns a value object that contains the specified edge inset data.
Parameters
- insets
The value for the new object.
Return Value
A new value object that contains the edge inset data.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hvalueWithUIOffset:
Creates and returns a value object that contains the specified offset data.
Parameters
- insets
The value for the new object.
Return Value
A new value object that contains the offset data.
Availability
- Available in iOS 5.0 and later.
See Also
Declared In
UIGeometry.hInstance Methods
CGAffineTransformValue
Returns an affine transform structure representing the data in the receiver.
Return Value
An affine transform structure containing the receiver’s value.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hCGPointValue
Returns a point structure representing the data in the receiver.
Return Value
A point structure containing the receiver’s value.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hCGRectValue
Returns a rectangle structure representing the data in the receiver.
Return Value
A rectangle structure containing the receiver’s value.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hCGSizeValue
Returns a size structure representing the data in the receiver.
Return Value
A size structure containing the receiver’s value.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hUIEdgeInsetsValue
Returns an edge insets structure representing the data in the receiver.
Return Value
An edge insets structure containing the receiver’s value.
Availability
- Available in iOS 2.0 and later.
See Also
Declared In
UIGeometry.hUIOffsetValue
Returns an offset structure representing the data in the receiver.
Return Value
An offset structure containing the receiver’s value.
Availability
- Available in iOS 5.0 and later.
See Also
Declared In
UIGeometry.h© 2011 Apple Inc. All Rights Reserved. (Last updated: 2011-10-12)