The synthesized setter for @property (copy)
sends a copy
message to the array, which results in an immutable copy.
You have no choice but the implement the setter yourself here, as detailed in the Objective-C guide.
More Related Contents:
- Finding Intersection of NSMutableArrays
- How will I be able to remove [NSNull Null] objects from NSMutableArray?
- How can i get Original order of NSDictionary/NSMutableDictionary?
- insert object in an NSMutableArray saved with NSUserDefaults
- How to wrap a Struct into NSObject
- Rendering to non-power-of-two texture on iPhone
- Get all of the pictures from an iPhone photoLibrary in an array using AssetsLibrary framework?
- Are the Core Image filters in iOS 5.0 fast enough for realtime video processing?
- NSDefaultRunLoopMode vs NSRunLoopCommonModes
- How does one compare one image to another to see if they are similar by a certain percentage, on the iPhone?
- How does the iOS app Display Recorder record the screen without using private API?
- Disable UITextField keyboard?
- UITextField in UIAlertView on iPhone – how to make it responsive?
- How to use prepareForReuse method
- Adding a self-signed certificate to iphone Simulator?
- How to write a simple Ping method in Cocoa/Objective-C
- Weird Switch error in Obj-C
- How to combine video clips with different orientation using AVFoundation
- Adding “Open In…” option to iOS app
- How to convert HEX RGB color codes to UIColor?
- What’s the difference between “bundle display name” and “bundle name” in cocoa application’s info plist
- This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes
- NSString: newline escape in plist
- How does -performSelector:withObject:afterDelay: work?
- motionBegan: Not Working
- How to parse an ISO-8601 duration in Objective C?
- How to convert Hex to Binary iphone
- Xcode – iPhone – profile doesn’t match any valid certificate-/private-key pair in the default keychain
- (iphone) UIImageView setImage: leaks?
- App submission failed due to icon dimensions (0 x 0)