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
108 Views Asked by Abz Ios At
1
There are 1 best solutions below
Related Questions in IPAD
- Site loads on iPad/Chrome but not on iPad/Safari
- Possible to use NFC for iPad
- Intune IpadOS disable Safari quick notes
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- How to setup different launch screen image for iPad portrait and landscape mode?
- Appear Circles in ZStack exact image position as navigationSplitView (.balanced) opens or close
- Can I use VS code on Ipad
- Webapp exiting fullscreen when dragging mui slider in iPads
- Why are pointer events disabled when using Apple's pencil in Safari?
- @media print @page margins not working on Mac Safari and iPad
- FontAwesome Icons displays as white on iPad instead of Black as on other platforms making them almost invisible
- SwiftUI .autocorrectionDisabled() behavior not updating with @State BOOL
- SwiftUI Previews Multitasking Options
- Flutter - how to prevent an app being closed by user on IpadPro (iPadOs 17)
- ipadOS 17.4: AVCaptureMetadataOutput delegate not called (qrscanner)
Related Questions in NSMUTABLEARRAY
- Assign double variable to mutable array
- Array multiplication in Objective-C, for NSArray and NSMutableArray
- How to test for an uninitialized mutable array
- Syntax to access objects in my NSMutableArray
- Reading Character Array from Shared class in KotlinMultiPlatform (KMM)
- Get Contents of Files In Array on iOS
- how can the whole NSMutableArray be filled with the same object(NSString)
- Section not saving moveRowAtIndexPath objective c
- Swift: subclass NSMutableArray
- Adding additional view to front of hierarchy of TableViews
- Do NSArray and NSMutableArray classes take up the same size in memory?
- Merge two NSMutableArray in Swift
- NSMutableDictionary not updating the tableView
- Change value of a particular key in array of dictionaries in SWIFT
- Cannot convert value of type 'NSArray.Element' to expected argument
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
- Objective-C pattern for creating mutable copies
- What does Mutable Copy in Objective C do
- Why does this NSMutableAttributedString addAttribute work only if I use a mutableCopy
- NSDictionary: Comparison after MutableCopy
- Issue related with modifying the value in an NSMutablearray
- How to implement properly mutableCopyWithZone and copyWithZone
- mutableCopyWithZone confusing requirement?
- Using -mutableCopyWithZone: on custom class makes it immutable
- MutableCopy AllocLeak MemoryLeak
- Literal syntax vs. mutableCopy and Objective-C compiler warnings
- Is this a reasonable pattern for implementing NSMutableCopying?
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.