iphone - Access a NSMutableArray of an object -
I post this topic because I have a problem with my iPhone application since 3 days I hope that Someone can help me because I am being mad.
Here's the thing: I fill XML data with an object user, in my application's representative, with XML Parser. This object contains many NSStrings and an NSMutableArrays that includes the album of the object type.
My problem is this: I can display all the data of the user's XML data with an internal function, but when I am trying to get the data, in my view the array controller, it does not work Does. I mean, it crashes as it is strange because I can access the app delegate.asser XMLData.NSString, but my app's delegate.User XMLData.NSMutableArray
Here's my code:
// Initializaiton Represent UserXMLData = [[User XMLData alloc] init]; UserXMLData.myArray = [[NSMutableArray alloc] init];
UserXMLData.h
@interface user XMLData: NSObject {// user data NSString * userId; // Content NSMutableArray * myArray; } @property (nontomic, write) NSString * myString; @property (nontomic, copy) NSMutableArray * myArray; @end
// album .h
@interface album: NSObject {NSString * albumId; NSMutableArray * Content; } @ Property (Nonomatic, Rectangle) NSSTING * Album ed; @property (non-creative, retaining) NSMutableArray * content; @end
As I said, I really do not crash why I'm trapped and I can not continue my application without diagnosing it.
Enable the corpse by following the instructions:
< P> This will not allow your app to release any object, and in turn causes them to make a complaint on the console if the message is sent to them after the release.
The most common cause of an accident is continuing (or retaining too often).
In addition, running a build and analyzing can sometimes point them out.
Comments
Post a Comment