Пожалуйста, обратитесь к ниже кода.Я получаю эту ошибку «Использование необъявленного идентификатора„рецепт“
#import "RecipeDetail.h"
#import "Recipe.h"
@implementation RecipeDetail
@synthesize recipeLabel;
@synthesize recipeName;
- (void)viewDidLoad
{
[super viewDidLoad];
self.title = recipe.name;
self.prepTimeLabel.text = recipe.prepTime;
self.recipePhoto.image = [UIImage imageNamed:recipe.imageFile];
NSMutableString *ingredientText = [NSMutableString string];
for (NSString* ingredient in recipe.ingredients) {
[ingredientText appendFormat:@"%@\n", ingredient];
}
self.ingredientTextView.text = ingredientText;
}