iphone - Don't allow cell to be moved to another section -
how can disable user can move cells other sections? don't want show alert each time ;)
thanks :d
implement targetindexpathformovefromrowatindexpath delegate method:
- (nsindexpath *)tableview:(uitableview *)tableview targetindexpathformovefromrowatindexpath:(nsindexpath *)sourceindexpath toproposedindexpath:(nsindexpath *)proposeddestinationindexpath { if (proposeddestinationindexpath.section != sourceindexpath.section) { //keep cell was... return sourceindexpath; } //ok move cell proposed path... return proposeddestinationindexpath; }
Comments
Post a Comment