Created
June 13, 2012 18:53
-
-
Save kmussel/2925767 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PostTableItem *pitem = [PostTableItem itemWithPost:post | |
dataSource:self | |
expanded:expanded | |
withBlock:nil]; | |
pitem.urlBlock = ^{ | |
[self.controller expandCellWithPost:post type:!expanded]; | |
}; | |
SECOND WAY: | |
pitem.urlBlock = ^{ | |
pitem.isExpanded = !pitem.isExpanded; | |
[self.controller expandCellWithPost:pitem.post type:pitem.expanded]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment