What does this caret ^ syntax, with void on either side mean? [duplicate]
问题 This question already has answers here : Caret character between types rather than variables, surrounded by parentheses (2 answers) Closed 5 years ago . In iPhone SDK 4.0, UIApplication has a new method, setKeepAliveTimeout: that requires a second parameter of type void(^)(void) . -(BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout handler:(void(^)(void))keepAliveHandler What exactly does the syntax of the second parameter mean, and how would I declare a function/handler that I can pass into