- (UIView*)pickerView:(UIPickerView*)pickerView viewForRow:(NSInteger)row
forComponent:(NSInteger)component reusingView:(UIView*)view
{
//设置分割线的颜色
for(UIView*singleLineinpickerView.subviews)
{
if(singleLine.frame.size.height<1)
{
singleLine.backgroundColor=kSingleLineColor;
}
}
//设置文字的属性
UILabel*genderLabel = [UILabelnew];
genderLabel.textAlignment=NSTextAlignmentCenter;
genderLabel.text=self.genderArray[row];//self.genderArray里边内容为@[@"男",@"女"]
genderLabel.textColor=kSpecialTextColor;
returngenderLabel;
}