category

Objective-C Category Causing unrecognized selector

My project has a UIImage category function that I want to call from another class. I properly import the header file for the image category and I get the project to compile with no warning. The problem is that when I call the uiimage category function I seen an unrecognized selector error with a NSInvalidArgumentException. Why am I seei...

Resize NSArray Programmatically

Hello, I have been trying to figure out if it is possible to programmatically resize an NSArray, by code similar to this: NSArray *resize = [NSArray arrayResized:oldarray size:10]; Which would a new NSArray (Not a NSMutableArray if it is possible) that has the elments after the end of oldarray padded with [NSNull null]. ...