hey guys, in my app im making a weight tracker, so i made a picker view
it works fine, but when a picker is holding numbers, i need to know a way to have a picker componet hold numbers from like 0-1000 is there a way to do that? or do i actually have to put @"1",@"2"etc all the way up to 1000! please help!!
heres my code
it works fine, but when a picker is holding numbers, i need to know a way to have a picker componet hold numbers from like 0-1000 is there a way to do that? or do i actually have to put @"1",@"2"etc all the way up to 1000! please help!!
heres my code
Code:
- (void)viewDidLoad {
NSArray *breadArray = [[NSArray alloc] initWithObjects:@"white", @"Whole Wheat", @"rye", @"SourDough", @"Seven Grain", nil];
self.breadTypes = breadArray;
[breadArray release];
NSArray *fillingArray = [[NSArray alloc] initWithObjects:@"Ham", @"Turkey", @"Penut Butter", @"Tuna", @"Sevvv",@"adfadsf", @"asdasd", nil];
self.fillingTypes = fillingArray;
[fillingArray release];
NSArray *weightArray = [[NSArray alloc] initWithObjects:@"LBS", @"KILO", nil];
self.weightTypes = weightArray;
[weightArray release];
[super viewDidLoad];
}