The application I create uses the selection view that I customized with:
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
UILabel* label = (UILabel*)view;
if (!label)
{
label = [[UILabel alloc] init];
[label setFont:[UIFont fontWithName:@"Helvetica Neue" size:32]];
label.textColor = [UIColor colorWithRed:0 green:0.478431 blue:1.0 alpha:1.0];
label.textAlignment = NSTextAlignmentCenter;
label.backgroundColor = [UIColor clearColor];
label.numberOfLines= [[self.fetchedResultsController fetchedObjects]count];
}
KTCategory *category = [[self.fetchedResultsController fetchedObjects] objectAtIndex:row];
label.text= category.name;
return label;
}
The background color in the view is black, and the selection indicator is no longer displayed. How can I make indicator lines that show the selected line in the same color as my text?
source
share