I’ve searched here, but didn’t see nothing like this error.
I’m trying to populate my pickerview on ViewDidLoad, but when I run my program, the pickerView is just populated with “?” instead my strings… what’s going on here? Thanks in advance.
- (void)viewDidLoad {
[super viewDidLoad];
activities = [[NSArray alloc] initWithObjects:@"sleeping", @"eating", @"working", @"thinking", @"crying", @"begging", @"leaving", @"shopping", @"hello worlding", nil];
feelings = [[NSArray alloc] initWithObjects:@"awsome",@"sad",@"happy",@"ambivalent",@"nauseous",@"psyched",@"confused",@"hopeful",@"anxious",nil];
}
You need to implement the
UIPickerViewDelegateandUIPickerViewDataSourceprotocols: