Function

UIOffsetFromString

Returns a UIKit offset structure corresponding to the data in a given string.

Declaration

UIOffset UIOffsetFromString(NSString *string);

Parameters

string

A string containing a representation of an offset.

Return Value

An edge insets data structure. If the string is not well-formed, the function returns UIOffsetZero.

Discussion

In general, you should use this function only to convert strings that were previously created using the NSStringFromUIOffset function.

See Also

Converting To and From Strings

NSStringFromUIOffset

Returns a string formatted to contain the data from an offset structure.