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 7556919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:59:22+00:00 2026-05-30T11:59:22+00:00

I’m designing an iPad app that will have a custom grid in it. The

  • 0

I’m designing an iPad app that will have a custom grid in it. The grid will display simple geometric shapes, in different colors, that contain a single character. These will update frequently based on user actions.

The grid will be larger than the screen size, in both directions, so will need to scroll/pan.

I also need the top row and first column to be “frozen” – so the top row remains at the top, but the content within it scrolls horizontally with the rest of the grid, and the first column remains at the left, but the content scrolls veritical with the rest of the grid.

The contents of the first column could be wide, so I’ll need to allow the user to resize it.

I’m struggling with the best way to design this. I’m thinking that it might be easiest just to have it as a single custom view when I manage all the drawing and interaction manually. But I can’t help feeling that I’m missing some easier way of doing it. Maybe there’s even a suitable third party component that would be a better starting point.

What would be the best way of designing this component of the app?

  • 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-30T11:59:24+00:00Added an answer on May 30, 2026 at 11:59 am

    I’d have 3 UIScrollViews that you can set the frames for apropriately so that they make the first column and first row the size you wish – the main grid contents can be the bottom right UIScrollView.

    The controller class can be the UIScrollViewDelegate for all of the views. Set the contentsize of the 1st column UIScrolView to be the same width as the width of its frame, but height the right size for the content, the 1st row UIScrollView should have the same height as its frame, but the right width for the content, and the bottom left UIScrollView will have it’s content size set as the size of teh grid contents.

    The - (void) scrollViewDidScroll:(UIScrollView*)scrollView method is called when scrolling any one of them so check which one has scrolled and scroll teh other two as appropriate.

    i.e.

    //Declared and positioned somewhere earlier, like in the .h
    UIScrollView* firstCol;
    UIScrollView* firstRow;
    UIScrollView* mainGrid;
    
    - (void) scrollViewDidScroll:(UIScrollView*)scrollView {
        if (scrollView == firstCol) {
            CGPoint offset = mainGrid.contentOffset;
            offset.y = firstCol.contentOffset.y
            [mainGrid setContentOffset:offset];
        }
        else if (scrollView == firstRow) {
            CGPoint offset = mainGrid.contentOffset;
            offset.x = firstRow.contentOffset.x
            [mainGrid setContentOffset:offset];
        }
        else if (scrollView == mainGrid) {
            CGPoint offset = firstRow.contentOffset;
            offset.x = mainGrid.contentOffset.x;
            [firstRow setContentOffset:offset];
            offset = firstCol.contentOffset;
            offset.y = mainGrid.contentOffset.y;
            [firstCol setContentOffset:offset];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't

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.