Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
How can i load data into this tableView from my arrays
I want to display the data in a way like this in my TableVIew. I have 3 sets of arrays
1. Category Arrays 2. Album Arrays 3. Track Arrays
Category1 may contains many Albums and each Album contains many tracks .... Category2 may contains many Albums and each Album contains many tracks ....
how can i configure the section and rows in my tableView. Any one give me an idea how can i do it
I want to display the data in a way like this in my TableVIew. I have 3 sets of arrays
1. Category Arrays 2. Album Arrays 3. Track Arrays
Category1 may contains many Albums and each Album contains many tracks .... Category2 may contains many Albums and each Album contains many tracks ....
how can i configure the section and rows in my tableView. Any one give me an idea how can i do it
i doesn't means the Indenting .... What i want to know is how can i add and delete the rows if appropriate rows are selected ... like expanding and collapsing ...
i doesn't means the Indenting .... What i want to know is how can i add and delete the rows if appropriate rows are selected ... like expanding and collapsing ...
So you want each category to be empty initially, with a disclosure triangle on it? Then, when the user taps on it, you want it to "open up" and display the data for that category?
We do something very much like that in the help system for our apps "Kevin and Kell" and "Save My Place". (Save My Place is only $0.99. You might want to download it to see if its help (info) screen is doing what you want)
What we do is create an array of booleans "section is open" for each section of items. If a section is not open, we return 1 in response to the numberOfRowsInSection data source call for that section. (The only row is the section heading with the disclosure button.)
If the user taps a section, we change a flag to indicate that that section is now "open," and insert the extra rows for that section into the table view using the insertRowsAtIndexPaths:withRowAnimation: method.
Regards,
Duncan C WareTo
Animated GIF created with Face Dancer, available for free in the app store.
So you want each category to be empty initially, with a disclosure triangle on it? Then, when the user taps on it, you want it to "open up" and display the data for that category?
We do something very much like that in the help system for our apps "Kevin and Kell" and "Save My Place". (Save My Place is only $0.99. You might want to download it to see if its help (info) screen is doing what you want)
What we do is create an array of booleans "section is open" for each section of items. If a section is not open, we return 1 in response to the numberOfRowsInSection data source call for that section. (The only row is the section heading with the disclosure button.)
If the user taps a section, we change a flag to indicate that that section is now "open," and insert the extra rows for that section into the table view using the insertRowsAtIndexPaths:withRowAnimation: method.
I'm having a bit of a problem trying to visualize what your trying to do.
We came up with some lazy load tableviews that might give you want you want in a little bit different ui then what you are describing.
Replies
Ed
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeWe do something very much like that in the help system for our apps "Kevin and Kell" and "Save My Place". (Save My Place is only $0.99. You might want to download it to see if its help (info) screen is doing what you want)
What we do is create an array of booleans "section is open" for each section of items.
If a section is not open, we return 1 in response to the numberOfRowsInSection data source call for that section.
(The only row is the section heading with the disclosure button.)
If the user taps a section, we change a flag to indicate that that section is now "open," and insert the extra rows for that section into the table view using the insertRowsAtIndexPaths:withRowAnimation: method.
Duncan C
WareTo
Animated GIF created with Face Dancer, available for free in the app store.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeExpanding/Collapsing TableView Sections | Cocoanetics
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeWe came up with some lazy load tableviews that might give you want you want in a little bit different ui then what you are describing.
Lazy load facebook album cover images - Life in The Clouds
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome