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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:06:17+00:00 2026-06-05T06:06:17+00:00

I need to implement a grid view of images that requires each segment to

  • 0

I need to implement a grid view of images that requires each segment to segue to another view controller /or View.

My parameters:

I need 260 segments: approx 18px x 18px
Each segment will be numbered (1-260) and have a diffrent (background) image
One segment must be highlighted (a daily square like ical)
You can tap any segment to segue to the next view controller

I have looked at custom TVCells / Buttons but are there more options out there?

Thank you

  • 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-05T06:06:18+00:00Added an answer on June 5, 2026 at 6:06 am

    In the end I opted for:

    • Linking the 1stViewController to the 2ndViewController in the
      storyboard and naming the seque.identifier in the attributes.
    • Creating a grid of UIButtons in IB and assigning them individual tags in the attributes (1-260 – don’t use 0 as it is a default).

    To change the buttons’ backgroundImage daily I set up a day-counter integer
    and in the viewDidLoad of the 1stVC coded:

       [(UIButton*)[self.view viewWithTag:dayCount] setBackgroundImage:[UIImage imageNamed:@"image_Day.png"] forState:UIControlStateNormal];
    

    As there were multiple UIButtons, I decided that dragging them all to a IBAction in IB was too long a task so I assinged them programatically using:

    -(void) assignButtons{
    [(UIButton*)[self.view viewWithTag:1] addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    [(UIButton*)[self.view viewWithTag:2] addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    } //etc for all 260
    

    Then used performSegueWithIdentifier: in a method:

    -(IBAction) buttonClicked:(id)sender{
    
    [self performSegueWithIdentifier:@"mySegue" sender:self];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement a grid in asp.net that behaves almost exactly like MS
I need to implement a custom handler for MVC that gives me the first
I need to implement handling of redelivery of JMS messages in the application that
In a user contorl I need to have a asp.net grid view with dropdown,text
How to implement CEditListCtrl?. List control with edit capabality (Report/Grid view). I have a
I have a grid of subview images that are display on the screen; it's
I need to implement a UI which displays many images(more than 1000). The layout
I have a feature matrix implemented with Silverlight's Grid where users need to select
I need to implement login velocity checking for a web service. The service is
I need to implement Integrated Windows Authentication for a WCF service hosted on IIS

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.