어떻게 호출합니까? -(void){}
(함수, 방법? 죄송합니다. 다른 .m 파일의이라는 용어를 잊어 버렸습니까?다른 .m 파일에서 this - (void)를 호출하십시오.
[self closeMenu];
같은 로컬하는 .m 파일을 호출 할 수 싶습니다
는 -(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)];
}];
}
좋아
건배, 나는 것을 가지고 있지만, –
그런 다음 당신은 다른 곳에서 실수를했습니다 .. 방법을 수행하지 않습니다. 누군가가 당신을 도울 수 있기 전에 좀 더 많은 정보를 제공해야합니다. –
예이 문제에 직면했습니다. 설명해 줄게. xcode 4.3.3과 수석 4.5를 사용하고 있습니다. 시니어는 ARC가 가능한 프로젝트를 변환하고 svn과 그것의 작업에서 체크 아웃합니다. 이제 기존 클래스 EmailSettingsViewController를 수정하고 일부 메서드를 추가하면 EmailSettingsViewController 클래스에서 자체 메서드를 호출 할 수 있지만 EmailSettingsViewController 클래스의 인스턴스를 만들고 새롭게 추가 된 메서드를 호출하면 오류 "ARC 문제, 표시 할 수 없음 @interface 없음 'EmailSettingsViewController'는 selector 'orderNum : CustCode :' "를 선언합니다. –