The file I'm working on has 3 arrays. 2 of which are built using:
Then that array is passed into a dictionary (dictionaryWithObject
.
The dictionaries are put into a NSMutableArray using addObject.
The mutable array is used to compare to the value of the search text to provide results.
This much is working already. My issue comes with my 3rd array which is from an XML document.
The xml is being called in the delegate. I have a working parser file. I set up the object with its strings (a book in this case). But I can't figure how to create the array of just titles. It includes everything. So for example when I disable the main label (so it doesn't crash when it comes to it) it creates the space for it to be.
I'm creating this dictionary like this:
The object's is called Book, so, the value I need for this table view listing would be Book.title.
How do I make the array of the title values?
Thanks
I apologize if this is unclear, but I am really struggling at grasping an easier way to say this. If there is anything I can provide that will help you understand further, I will gladly provide it. Source docs, code examples, you name it.
Code:
[NSArray arrayWithObjects:@"1", @"2", nil];
Then that array is passed into a dictionary (dictionaryWithObject
The dictionaries are put into a NSMutableArray using addObject.
The mutable array is used to compare to the value of the search text to provide results.
This much is working already. My issue comes with my 3rd array which is from an XML document.
The xml is being called in the delegate. I have a working parser file. I set up the object with its strings (a book in this case). But I can't figure how to create the array of just titles. It includes everything. So for example when I disable the main label (so it doesn't crash when it comes to it) it creates the space for it to be.
I'm creating this dictionary like this:
Code:
NSDictionary *booksDict = [NSDictionary dictionaryWithObject:appDelegate.books forKey:@"Books"];
The object's is called Book, so, the value I need for this table view listing would be Book.title.
How do I make the array of the title values?
Thanks
I apologize if this is unclear, but I am really struggling at grasping an easier way to say this. If there is anything I can provide that will help you understand further, I will gladly provide it. Source docs, code examples, you name it.
Last edited: