Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MMPickerView/MMPickerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ @interface MMPickerView () <UIPickerViewDelegate, UIPickerViewDataSource>
@property (nonatomic, strong) UIColor *pickerViewTextColor;
@property (nonatomic, strong) UIFont *pickerViewFont;
@property (nonatomic, assign) CGFloat yValueFromTop;
@property (nonatomic, assign) NSInteger pickerViewTextAlignment;
@property (nonatomic, assign) NSTextAlignment pickerViewTextAlignment;
@property (nonatomic, assign) BOOL pickerViewShowsSelectionIndicator;
@property (copy) void (^onDismissCompletion)(NSString *);
@property (copy) NSString *(^objectToStringConverter)(id object);
Expand Down Expand Up @@ -148,10 +148,10 @@ -(void)initializePickerViewInView: (UIView *)view
NSNumber *textAlignment = [[NSNumber alloc] init];
textAlignment = options[MMtextAlignment];
//Default value is NSTextAlignmentCenter
_pickerViewTextAlignment = 1;
_pickerViewTextAlignment = NSTextAlignmentCenter;

if (textAlignment != nil) {
_pickerViewTextAlignment = [options[MMtextAlignment] integerValue];
_pickerViewTextAlignment = (NSTextAlignment)[options[MMtextAlignment] integerValue];
}

BOOL showSelectionIndicator = [options[MMshowsSelectionIndicator] boolValue];
Expand Down