Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 648159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:48:07+00:00 2026-05-13T21:48:07+00:00

when u first open up iphone, all the app are layout in a grid

  • 0

when u first open up iphone, all the app are layout in a “grid icon” type. And if u have too many app, the user swipe to the right, and the new view come out, with again all the app appear in a “grid icon” layout. Can u guys point me to where I can achieve such a design. Code would be very appreciated !!!
I did try something and here is what I got so far.
In my delegate.h class I have

UITabBarController *tabBarController;
View1 *view1; //Inherit from UIViewController
View2 *view2; //Inherit from UIViewController

In my delegate.m class I have

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    tabBarController = [[UITabBarController alloc] init]; //Create a tab bar
    view1 = [[View1 alloc] init]; //Create the first view
    UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:view1];

    view2 = [[View2 alloc] init]; //create the second view
    UINavigationController *navigationController2 = [[UINavigationController alloc] initWithRootViewController:view2];

    tabBarController.viewControllers = [NSArray arrayWithObjects:navigationController1, navigationController2, nil];

    [window addSubview:tabBarController.view];
    [window makeKeyAndVisible];
 }

So now I have two tab that load view1 and view2, they both implement UINavigationController, meaning that if I create another view3, when I pushViewController, I can create the animated effect like the iPhone. Then in view3.m when I try to go back, I can popViewController. However what I cant achieve is, let see that each view I will have 4 icon, so when I query back from the db, I know I have to display 12 icon, meaning 3 views. But I only know what information at runtime 🙁 . As it is right, I do actually have view1, view2 and view3 as view1.m, view2.m and view3.m. If the number of icon go above 12, meaning I need another view then I am screw. Help please

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:48:07+00:00Added an answer on May 13, 2026 at 9:48 pm

    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];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 420k
  • Answers 420k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Imagine a class like this: public class A { private… May 15, 2026 at 10:45 am
  • Editorial Team
    Editorial Team added an answer You need to add your other project as a Java… May 15, 2026 at 10:45 am
  • Editorial Team
    Editorial Team added an answer Silverlight (the plugin) is 32-bit only. You can not run… May 15, 2026 at 10:45 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.