startという名前のボタンがあり、その名前が何であるかをメソッドで呼び出していることを知りたいのですが、その方法がよくわかりません。これは、ボタンが呼び出すメソッドです。
-(IBAction) startMotion: (id)sender {
UIButton * buttonName = (UIButton *) sender;
NSLog(@"Button Name: %@", buttonName.currentTitle);
}
NSLogは
ボタン名:(null)