Я получаю 2 ошибки в строке 10:
Ожидаемый тип
и
Ожидается; по способу-прототипу
после компиляции моего приложения.
Файл с именем NSBundle+NYTPhotoViewer.m
, который показывает ошибку, имеет следующий код -
код
#import "NSBundle+NYTPhotoViewer.h"
#import "NYTPhotosViewController.h" // This is line 10
@implementation NSBundle (NYTPhotoViewer)
+ (instancetype)nyt_photoViewerResourceBundle {
static NSBundle *resourceBundle = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
NSString *resourceBundlePath = [[NSBundle bundleForClass:[NYTPhotosViewController class]] pathForResource:@"NYTPhotoViewer" ofType:@"bundle"];
resourceBundle = [self bundleWithPath:resourceBundlePath];
});
return resourceBundle;
}
@end