헤더 파일 대신 클래스 파일에 메소드 프로토 타입을 설정했습니다. 헤더 파일을 사용해야한다면 실제로 차이가 있는지 잘 모르겠습니다.iPhone 메소드 프로토 타입
프로토 타입을 이와 같이 설정하는 데 몇 가지 단점이 있습니까?
#import "SettingsViewController.h"
@interface SettingsViewController()
- (void)syncSettings;
@end
@implementation SettingsViewController
- (void)syncSettings
{
// Code Here
}
// Other Methods
@end
가능한 [@hface와 @end를 지정하는 .h 파일 및 .m 파일의 선언 방법 간의 차이] (http://stackoverflow.com/questions/8196170/difference-between-declaring-methods-in- h-file-in-m-file-specify-inter) –