/**
* 限制使用 init 初始化方法
*
* @return 抛出异常
*/
- (id)init {
@throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"%@ Failed to call designated initializer. Invoke `initWithBaseURL:` instead.", NSStringFromClass([self class])]
userInfo:nil];
}
网友评论