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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -