FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSArray(NSNumber) Category Reference

NSArray shortcut methods for NSNumber. More...

#import <NSArray.h>

Instance Methods

(NSInteger) - integerAtIndex:
 Returns the integer located at index. More...
 
(NSUInteger) - indexOfInteger:
 Returns the lowest index whose corresponding array value is equal to a given integer. More...
 

Detailed Description

NSArray shortcut methods for NSNumber.

Method Documentation

- (NSUInteger) indexOfInteger: (NSInteger)  value

Returns the lowest index whose corresponding array value is equal to a given integer.

Parameters
valueA value.
Returns
The lowest index whose corresponding array value is equal to value. If none of the objects in the array is equal to NSNumber with value, returns NSNotFound.
See also
indexOfObject:
NSNumber numberWithInteger:
- (NSInteger) integerAtIndex: (NSUInteger)  index

Returns the integer located at index.

Parameters
indexAn index within the bounds of the array.
Returns
The integer decoded from NSNumber object located at index.
See also
objectAtIndex:
NSNumber integerValue

The documentation for this category was generated from the following file: