0
일단 UIDocument가 초기화되면 사용자 정의 메소드를 호출해야하므로 UIDocument의 initWithFileURL을 겹쳐 쓰려고합니다. 나는이를 덮어 쓸 경우 수행해야 할 다른 아무것도UIDocument의 initWithFileURL 서브 클래 싱
-(id)initWithFileURL:(NSURL *)url {
self = [super initWithFileURL:url];
// do some custom stuff
return self;
}
있습니까 :
나는 이것이 좋은 생각이 될 수있다 생각? 나는 NIL 또는 무엇인가를 확인할 필요가 있다고 느낀다. 사용자 정의 메소드로 메소드를 겹쳐 써야 할 필요가있는 경우 일반적으로 어디에서 보입니까? 나는 이것을 (UIDocument를 오른쪽 클릭 할 때 정의로 건너 뛰기를 통해) 할 수있었습니다 :#pragma mark *** Initialization ***
// The designated initializer. Passing an empty URL will cause this method to throw an NSInvalidArgumentException.
- (id)initWithFileURL:(NSURL *)url;