All the app in iphone appear in a “grid icon” layout, how can I achieve that layout?

I would take a look at Three20 an open-source framework that serves as the backbone for the Facebook app, and many others. In it, they have a class called the TTLauncherView the is EXACTLY like the current (as of this writing) Facebook launcher. It is very close to the functionality you get with the iPhone home screen, complete with page swipes, reordering, wobbling and deletion.

I would take a look at Three20, an open-source framework that serves as the backbone for the Facebook app, and many others. In it, they have a class called the TTLauncherView the is EXACTLY like the current (as of this writing) Facebook launcher. It is very close to the functionality you get with the iPhone home screen, complete with page swipes, reordering, wobbling and deletion.

I will look more into it, but by the first glance, it is confused as hell. :( – Harry Pham Feb 12 '10 at 17:30 Embracing three20 is difficult at first, but will make your life much easier in the long run. If you are not too far along in your project, I would advise switching over to a three20 style app.

If you are already really far along, then perhaps you can extract the relevant parts as a guideline for your own implementation – coneybeare Feb 12 '10 at 18:59.

Julien's not exactly right. What you're talking about are views that are added to a UIScrollView. Here's an example of a scroll view Search here for UIScrollView or check out Apple's examples (see link above).

Once you have the UIScrollView implemented, you add UIButtons or UIViews to the scrollView laid out in Grid format. Here's an example gridView project. There are others do a search here or Google to find them (e.g. IPhone GridView or iPhone Open Source GridView).

Thank very for replying, I will definitely take a look at them – Harry Pham Feb 12 '10 at 17:29 The gridview project, cant run it. Always terminated by the uncaught exception. Was you able to run it?

– Harry Pham Feb 13 '10 at 18:38 Select my answer and check here: bynomial. Com/moriarty – Jordan Feb 15 '10 at 1:15.

Lots of the solution here seems to be overkilled. Here is how I do it. Create a UIViewControllerTemplate, that contain 4 (or more) customize buttons on it.So every time you create a new view, you will have a layout that will look like 'grid' -(void) initButtons{ //button size 100 X 100 int shiftx = -5; int shifty = 15; (self.

Button1). Frame = CGRectMake(40-shiftx, 50-shifty, 100, 100); (self. Button2).

Frame = CGRectMake(180-shiftx, 50-shifty, 100, 100); (self. Button3). Frame = CGRectMake(40-shiftx, 250-shifty, 100, 100); (self.

Button4). Frame = CGRectMake(180-shiftx, 250-shifty, 100, 100); } -(void) viewDidLoad{ self initButtons; self. View addSubView:self.

Button1; self. View addSubView:self. Button2; self.

View addSubView:self. Button3; self. View addSubView:self.

Button4; super viewDidLoad; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions