I am facing an issue with the values in NSMutablearray. I have two NSMutablearray, both are holding the same content using mutablecopy. The issue is that when I modify a value in one array, the corresponding value in the second array also get modified. How to resolove this. Please help me.
Issue related with modifying the value in an NSMutablearray
104 Views Asked by Abz Ios At
1
There are 1 best solutions below
Related Questions in IPAD
- Setting View orientation to portrait is ignored
- How to force close ipad/iphone keypad when input element is not focused using JS?
- UIDocumentInteractionController presentation style
- iOS coordinates for iPad and iPhone game using spritekit
- What is the best practice when making a storyboard for iPhone and iPad?
- Exchange plist data between 2 iPad using iCloud
- an app supporting arm64 and armv7 running on arm64 and ios 7 ipad air
- My SIOSocket get disconneted automatically when i locked my ipad
- using livestream video in iOS application
- Always shown vertical and horizontal scroll indicator on a uiwebview
- Is it possible to opt your iPad app out of multitasking on iOS 9
- Bind html button click with objective c
- iPhone App won't run on ipad at 2x resolution
- Missing icon and storyboard files, iOS 7 and 8, Xcode 6
- iOS infinitely deeply nested TableView/UIGestureRecognizer view tree AND iPAD requires 2 finger scrolling on a tableview
Related Questions in NSMUTABLEARRAY
- mutating method sent to immutable object' in nsmutablearray
- Why doesn't this simple NSPredicate filter my array
- How to store JSON Dictionary response in NSMutableArray
- Sort an array using NSSortDescriptor without use of any key?
- Why can't I access the elements of my NSMutableArray?
- Overwriting NSMutableArray loaded from NSUserDefaults
- Line of code from Swift to Objective-C
- Can we create n no.of NSMutableArray dynamically?
- How to add UIImage object into NSMutableArray in iOS
- Core Data and a UIActivityViewController
- KVO. ObserveValueForKeyPAth is not called
- Collision Detection with an NSMutable array of Objects
- What sense to copy empty array?
- NSMutableArrays store only 2 objects
- Why can't I create an NSMutableArray of integers?
Related Questions in XCODE4.3
- Issue related with modifying the value in an NSMutablearray
- Code highlighting and autocomplete gone in Xcode
- How to manipulate Navigation Controller?
- Core Data & UIManagedDocument in Xcode 4.3: Can't merge models
- Can't close popover after selecting item within table view
- Calling method to view controller delegate, won't dismiss modal view
- localStorage not persisting in OSX app (Xcode 4.3)
- Xcode4.3.2 AVFoundation.framework not found?
- How add Framework to project on Xcode 4.3.2
- Why do I need to control-drag some kind of UI-widgets into yellow sphere representing the view controller?
- iphone Custom table cell, UILabel needs to be scrollable
- Why Xcode 4.3.2 shows white icon when archived?
- Xcode build but not run on device
- How to Auto resize in XCodes 4.3.2
- Undefined symbols for architecture armv7 - route-me library, ad hoc only
Related Questions in NSMUTABLECOPYING
- Issue related with modifying the value in an NSMutablearray
- How to implement properly mutableCopyWithZone and copyWithZone
- Literal syntax vs. mutableCopy and Objective-C compiler warnings
- Why does this NSMutableAttributedString addAttribute work only if I use a mutableCopy
- MutableCopy AllocLeak MemoryLeak
- mutableCopyWithZone confusing requirement?
- Using -mutableCopyWithZone: on custom class makes it immutable
- Is this a reasonable pattern for implementing NSMutableCopying?
- What does Mutable Copy in Objective C do
- NSDictionary: Comparison after MutableCopy
- Objective-C pattern for creating mutable copies
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
mutableCopy copies by reference, not value. So, any change to one of those objects affects for both arrays.
You could realize different methods to overcome this situation.
// first method
// second method
Best regards.