错误:
[quote]
2012-12-13 09:59:03.038 jzny[17354:11303] *** Assertion failure in -[UITableViewRowData rectForRow:inSection:], /SourceCache/UIKit_Sim/UIKit-2372/UITableViewRowData.m:1630
2012-12-13 09:59:03.039 xxxx[17354:11303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'request for rect at invalid index path (<NSIndexPath 0x719c380> 2 indexes [0, 0])'
*** First throw call stack:
(.........)
libc++abi.dylib: terminate called throwing an exception
(lldb)
[/quote]

如果出现以上错误是说UIPickerView绑定数据时,判断如果没有数据就设置pickView.userInteractionEnabled=NO就OK了~~~

-(NSInteger) pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component{
[list count]==0?selectPicker.userInteractionEnabled=NO:nil;
return [list count];
}