別の .m ファイルからこれ-(void){}
(関数、メソッド? 申し訳ありませんが、用語を忘れてしまいました)を呼び出すにはどうすればよいですか?
また、このようなローカル .m ファイルで呼び出すことができるようにしたいと思います[self closeMenu];
は次の-(void){}
とおりです。
-(void)closeMenu{
//close the menu
[UIView animateWithDuration:0.6 animations:^{
[UIView setAnimationBeginsFromCurrentState:YES]; // so it doesn't cut randomly, begins from where it is
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[menuView setFrame:CGRectMake(menuView.frame.origin.x, -menuView.frame.size.height, menuView.frame.size.width, menuView.frame.size.height)];
}];
}