I have a method that basically uses this:
-(void)myMethodwithDuration:(NSTimeInterval)time{
[UIView animateWithDuration:time
animations:^{
// do thing here
}
completion:^(BOOL finished){
//do completion stuff here
}
];
What I don't know how to do is to write/package up a parameter so that I can write the code I want to execute, and then simply pass it into the method like I do with time
.
Any help appreciated. Thanks