Black subview as picker view
I'm having some problems while popping up a picker view when clicking into a textfield. It's correctly popped (and keyboard is properly hidden), but instead of showing my array of data, it pops up as 开发者_开发技巧a black subview... any similar experience? any idea? Thanks!
I think you dont make connection for datasource and delegate methods of picker view check those and implement
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)thePickerView
- (NSInteger)pickerView:(UIPickerView *)thePickerView numberOfRowsInComponent:(NSInteger)component
- (NSString *)pickerView:(UIPickerView *)thePickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
Is the pickerView at all isn't visible? Or only data is missing? Are you setting frame of pickerView? You should not tweak with its height. Its height should be default one. You can get that value from IB.
精彩评论