下面是官方的详细解释
A Boolean value that determines whether users can select a row.
**Declaration**
OBJECTIVE-C
@property(nonatomic) BOOL allowsSelection
**Discussion**
If the value of this property is YES (the default), users can select rows. If you set it to NO, they cannot select rows. Setting this property affects cell selection only when the table view is not in editing mode. If you want to restrict selection of cells in editing mode, use allowsSelectionDuringEditing.
**Availability**
Available in iOS 3.0 and later.
allowsSelection属性只适应于当 table view不是编辑模式的时候。
当你需要在编辑模式下限制cell的选择,那么你就要考虑使用allowsSelectionDuringEditing这个属性。官方给出的详细解释如下
A Boolean value that determines whether users can select cells while the table view is in editing mode.
**Declaration**
OBJECTIVE-C
@property(nonatomic) BOOL allowsSelectionDuringEditing
**Discussion**
If the value of this property is YES, users can select rows during editing. The default value is NO. If you want to restrict selection of cells regardless of mode, use allowsSelection.
**Availability**
Available in iOS 2.0 and later.
这里我就不再做详细的说明。(第一次写简书,写的不对的地方,请多多指教。)