hackiftekhar / IQActionSheetPickerView

ActionSheet with UIPickerView
MIT License
205 stars 76 forks source link

Add different customization options #20

Closed stanmots closed 8 years ago

stanmots commented 8 years ago

Here is a list of new customization options:

[[IQActionSheetPickerView appearance]setPickerViewBackgroundColor: [UIColor orangeColor]];

[[IQActionSheetPickerView appearance]setPickerComponentsColor: [UIColor grayColor]];

[[IQActionSheetPickerView appearance]setPickerComponentsFont: [UIFont systemFontOfSize:17.0]];

NSDictionary *attributesForNormalState = @{NSForegroundColorAttributeName: [UIColor redColor], NSFontAttributeName: [UIFont systemFontOfSize: 18.0] };

[[IQActionSheetPickerView appearance]setCancelButtonAttributes: @{ kAttributesForNormalStateKey: attributesForNormalState}];

And as a bonus: the picker can be dismissed now on a background (dimmed view) tap.