Question: Am I using this block correctly? No leaks or retain cycles?
Question 1.5: Is this good style or should I just do an inline block?
typedef void(^completionBlock)(void);
...
-(completionBlock)completionBlock{
return ^{
[[NSNotificationCenter defaultCenter] postNotificationName:kFetchNewTopicsAndReloadTableData object:nil];
};
}
..
-(void)refresh
{
[self dismissViewControllerAnimated:YES completion:[self completionBlock]];
}