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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:48:37+00:00 2026-06-12T18:48:37+00:00

In Pages documents are listed as paper size rectangles with a title and date

  • 0

In Pages documents are listed as paper size rectangles with a title and date underneath. I’ve recreated this look with a UICollectionView.

When the user taps on the title to rename the document all other documents fade out and the one you tapped on transitions from its current location to the center and expands in size a bit as the keyboard slides out.

(I found this video that show what I’m talking about)

What’s the best way to do this when using a UICollectionView?

  • 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-12T18:48:38+00:00Added an answer on June 12, 2026 at 6:48 pm

    You gotta subclass the UICollectionViewFlowLayout. Then when the needed action (to rename) is performed, you pass the indexPath of the cell that needs to be edited to the layout.

    Then you can add the needed layout attributes, like this:

    -(void)applyRenameAttributes:(UICollectionViewLayoutAttributes *)attributes
    {
        if (self.renameIndexPath != nil) {
            if (attributes.indexPath == self.renameIndexPath) {
                // add attributes for the item that needs to be renamed
            } else {
                attributes.hidden = YES;
            }
        }
    }
    -(NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
    {
        NSArray *allAttributes = [super layoutAttributesForElementsInRect:rect];
    
        for (UICollectionViewLayoutAttributes *attributes in allAttributes) {
            [self applyRenameAttributes:attributes];
        }
    
        return allAttributes;
    }
    -(UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath
    {
        UICollectionViewLayoutAttributes *attributes = [super layoutAttributesForItemAtIndexPath:indexPath];
    
        [self applyRenameAttributes:attributes];
    
        return attributes;
    }
    

    You also need to invalidate the layout when the renameIndexPath value is changed (do that in the setter). When renaming is finished (or cancelled), you change the renameIndexPath back to nil.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Word documents are split into pages by default. How do I remove the page
I am generating JavaScript pages through Java code like: FileOutputStream fs=new FileOutputStream(C:\\Documents and Settings\\prajakta\\Desktop\\searcheng.html);
I have a CouchDB database (v1.2.0) with documents like: { _id: pages/1, _rev: 15-56ad5a5e879206edb04a7a62105dd25d,
I am in the process of writing a Greasemonkey Script for pages in this
Trying to find a way to remove blank pages from a document I wrote
I want to create a document with prawn one or more pages long that
I have a web page that displays a list of documents stored on the
I have a page where users can select different documents files in a datalist
How to paginate a word document for example if there are 10 pages: page
I have pdf document, for example 25 pages. How to add one blank page

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.