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

  • Home
  • SEARCH
  • 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 7929519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:06:24+00:00 2026-06-03T20:06:24+00:00

i am new to iOS development i am working on an app which is

  • 0

i am new to iOS development i am working on an app which is exactly similar like the Featured tab in iPad .

For Example :

App feature Tab in Portrait mode
http://postimage.org/image/hpfg55zbh/

Displaying Apps in scrollview

while in Landscape mode

http://postimage.org/image/dpwnbnr4n/

OHK NOW : what i am doing is , i am creating a view of size of a cell display in the picture. Lets say if i have 25 Apps so i am creating 25 views and loading image and description of app on that view . When user rotate from portrait mode to landscape i am
re-creating the views Because i am displaying :

Portrait Mode : 5 Rows X 2 Column on each page .
Landscape Mode : 3 Rows X 3 Column on each page .

Re-creating and Releasing the Views is really not a good practice . Can any one please guide me or suggest me any other technique of doing this ? i have to scrollview and page control thats for sure but i want to get rid of this re-creating method .

**

Doing the complete development by programming , Not using any NIB

**
Looking for the best answer 🙂 … Kindly help me out

  • 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-06-03T20:06:26+00:00Added an answer on June 3, 2026 at 8:06 pm

    I would say that when your view loads you would do the initial creation and when you rotate you would just be repositioning the views by editing their frames. Since you are not using a nib I assume you already have the logic to position the views accordingly.

    so maybe you have something like:

    //Assuming you have these members
    UIView *yourContainer_;
    NSArray *subViews_;
    
    - (void)viewDidLoad
    {
        if(UIUserInterfaceOrientationIsLandscape(self.interfaceOrientation))
        {
            //create your views and add to container
        }
        else
        ....
    }
    
    -(void)willRotateToInterfaceOrientation: (UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration
    {
         if(UIUserInterfaceOrientationIsLandscape(orientation)
         {
              yourContainer_.frame = CGRectMake(?,?,?,?); //whatever the new size needs to be
              //then loop through all of your sub views to reposition their frames individually within the new container to match the new size and layout
         }
         else
         {
              //the same thing for this orientation
         }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am new to iOS development, and my app i am working on
I'm new to iOS development and am working on this app that has a
I am new in ios development .Now i am trying to develop an ipad
I'm new to apple's development scene and have been working on an app for
I'm new to iOS development. Is there anyway to get FB SSO working with
Hey i am new to iOS development, in my app i want to fetch
I am new in ios development.Now,i am developing an Ipad application using ios 4.2
I'm fairly new to iOS development, and I'm starting work on an App that
I am fairly new to iOS development, and currently an app I am creating
I am new in ios development. I am doing a photo cropper app. I

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.