Created
February 27, 2014 18:08
-
-
Save eralston/9255531 to your computer and use it in GitHub Desktop.
An example of block typedefs in Objective-C
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
#ifndef Blocks_h | |
#define Blocks_h | |
#import <Foundation/Foundation.h> | |
typedef void (^VoidBlock)(); | |
typedef BOOL (^ReturnBoolBlock)(); | |
typedef void (^DictionaryBlock)(NSDictionary *dictionary); | |
typedef void (^TableCellIndexPathBlock)(UITableViewCell *cell,NSIndexPath *indexPath); | |
typedef UITableViewCell *(^ReturnTableCellForTableViewAndIndexPathBlock)(UITableView *tableView,NSIndexPath *indexPath); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment