後で使用するために NSIndexPath オブジェクトのコピーを保存したいと考えています。次に、元のオブジェクトを上書きするようにします。オブジェクトの保持カウントをインクリメントするだけなのでcopy
、元のインデックス パスのディープ コピーを作成するにはどうすればよいですか?
...
NSIndexPath *originalIndexPath = [tappedIndexPath copy]; // need to make a deep copy here
tappedIndexPath = ...;
...
// need the original index path here