PDA

View Full Version : IPhone app store




arnieterm
Nov 7, 2008, 07:33 AM
I have to work on an IPhone application similar to IPhone app store [device].
As u all have seen it is a tabBarController application with a collection of navigationcontrollers with each nav bar having their viewcontrollers/table view controller.
My question is related to memory issue. As I am getting data from a web service and populating them in various tab bar's view controllers/table view controllers
I will be working on this kind of app for first time. The no. of tabs will be 4. Does it may cause any substantial memory leak problem?
I am asking this because i have to fill viewControllers property with collection of nagiation controllers.
Can it be possible that in a tab bar application v can populate data only when needed?



jnic
Nov 7, 2008, 08:23 AM
This article is fairly decent primer on memory management in Objective-C: http://www.stepwise.com/Articles/Technical/HoldMe.html

arnieterm
Nov 10, 2008, 06:48 AM
Its a very good article on memory issues.
While reading it, I have again viewed the Iphone app store. You have also noticed that it has a row [Category tab] at the bottom of tableview tapping which it shows 25 new categories [appended] to the existing row.
How can we do this?
Also I want to know that doing it this way has anything to do with memory?
Recently I have worked on an IPhone application that needs to show data in paging fashion. Here I have created a UIView along with Next/Previous buttons.
Clicking on these buttons clears the existing contents from the UIView [except the two buttons] and addes a new set of controls to it.

liptonlover
Nov 10, 2008, 07:43 AM
I'm not sure how exactly, but for your last cell create a button saying "25 more..." when it's clicked, just add 25 more cells and get the necessary data to fill them with.

jnic
Nov 11, 2008, 06:49 AM
I'm not sure how exactly, but for your last cell create a button saying "25 more..." when it's clicked, just add 25 more cells and get the necessary data to fill them with.

Just so. Check out the UITableViewDataSource docs (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDataSource_Protocol/Reference/Reference.html) for more on data management.