vicpenap / PrettyKit

PrettyKit for iOS is a small set of new widgets and UIKit subclasses that gives you a deeper UIKit customization. You will be able to change their background color, add gradients, shadows, etc.
http://vicpenap.github.com/PrettyKit
Other
1.22k stars 154 forks source link

PrettyKit Grid View Cell did Select? #29

Open boss14 opened 12 years ago

boss14 commented 12 years ago

Hi,

Can you tell me the cell selection in PrettyGridTableViewCell. I need to navigate the page to another page when i click the 1st cell of the PrettyGridTableViewCell. I searched the method but i did find that one. waiting for the reply

Thanks in Advance.

With Regards,

S.SriBharanidharan

vicpenap commented 12 years ago

There's a block property, actionBlock, which gets invoked each time a subcell is selected. When you prepare the cell (usually tableView:cellForRowAtIndexPath:), set up the block with the code you need. Take a look at the examples to see that in action.

            gridCell.actionBlock = ^(NSIndexPath *indexPath, int selectedIndex) {
                [gridCell deselectAnimated:YES];
            };                
boss14 commented 12 years ago

Thank you so much man i'll try this

I tried its solved my issue Thank you admin...;)

On Fri, Aug 17, 2012 at 5:34 PM, Victor Pena notifications@github.comwrote:

There's a block property, actionBlock, which gets invoked each time a subcell is selected. When you prepare the cell (usually tableView:cellForRowAtIndexPath:), set up the block with the code you need. Take a look at the examples to see that in action.

        gridCell.actionBlock = ^(NSIndexPath *indexPath, int selectedIndex) {
            [gridCell deselectAnimated:YES];
        };

— Reply to this email directly or view it on GitHubhttps://github.com/vicpenap/PrettyKit/issues/29#issuecomment-7816096.

With Regards, S.SriBharanidharan iPhone Application Developer, Finatel Technology pvt., Ltd., Chennai , Ph:9790671958