Hi i have a simple question, what is the best choice for this method:
Class Product
- (NSMutableArray*)getAllProductsByCategory:(NSInteger)categoryID
{
.................
sqlite3_bind_int(statement, 1, categoryID);
.................
}
file.h
@interface ListViewController : UITableViewController {
NSInteger *number;
}
file.m
// with NSInteger: incompatible pointer to integer conversion
self.listArray = [dbAccess getAllProductsByCategy:number];
What is the best choice for passed a simple integer like parameter to method: NSInteger, NSNumber or simple int??