davdroman / Bohr

Settings screen composing framework
MIT License
1.26k stars 83 forks source link

[self bo_setFont:font] → -[__NSCFNumber length]: unrecognized selector #42

Closed kevnm67 closed 8 years ago

kevnm67 commented 8 years ago

Thanks for providing Bohr. It's been very helpful!

I'm having one issue. Here are the steps producing the crash:

  1. During app launch, I enumerate a tabbar's view controller array -- 1 VC is a subclass of BohrTableViewController
  2. Attempt to present a UIPickerView from a completely separate, non-bohr-subclass tableview and the app crashes
#import "UILabel+DatePickerCustomization.h"

// line 85
- (void)bo_setFont:(UIFont *)font {
.... [self bo_setFont:font] ;
}
kevnm67 commented 8 years ago

Closed: Sorry, it was an error on my part -- picker data source had NSNumber objects in the array. Xcode kept directing me to your UILabel category.

davdroman commented 8 years ago

No problem, I'm glad it's not a bug :+1: