ios - Implementing TableView Navigation xcode 6 -
Hello,
I'm trying to follow the tutorial from this website: a tableview Navigation to apply, but in the last step I get an error from my xcode.
I am going to post the code where I have an error code because I'm a bit disappointed about that error. I hope you can help me
CarDetailViewController.m -. TableViewStory
#import "CarTableViewController.h" #import "CarTableViewCell.h" #import "CarDetailViewController.h" @ implementation CarDetailViewController @ Sintaseshes Mekailebl = _makeLabel; @ Synthesis modelLabel = _modelLabel; @Sensory Image View = _imageView; @ Synthesize carDetailModel = _carDetailModel; - (zero) viewDidoadload [[Super Viewedload]; Self.makeLabel.text = [self.carDetailModelObsuitIntex: 0]; Self.modelLabel.text = [self.carDetailModelObsuitIntex: 1]; Self.imageView.image = [UIImage imageNamed: [self.carDetailModelObjectOntIndex: 2]]; } - (void) prepareForSegue: (UIStoryboardSegue *) segue this: (id) This {if ([[segue identifier] isEqualToString: @ "ShowCarDetails"]) {CarDetailViewController * detailViewController = [segue destinationViewController]; NSIndexPath * myIndexPath = [self.tableView indexPathford selected]; ------------ property tableview types not found on the object 'CARDETAILVIEWCONTROLLER' detailViewController.carDetailModel = [[NSArray alloc] initWithObjects: [self.carMakes objectAtIndex: [myIndexPath line]] ---- -------- property CARMAKES types not found on the object 'CARDETAILVIEWCONTROLLER' [self.carModels objectAtIndex: [myIndexPath line]], [self.carImages objectAtIndex: [myIndexPath line]], zero]; }} @end
CarDetailViewController.h
#import & lt; UIKit / UIKit.h & gt; @Inteface Cardabitiews Controller: UIViewController @property (strong, nonatomic) NSArray * carDetailModel; @property (strong, non-monom) IBotlet UILb * Machelabel; @property (strong, non-monomental) IBOutlet UILabel * modelLabel; @protecti (strong, nonmomic) IBolet UIImageView * imageView; @end
Thank you in advance.
prepareForSegue
is pasted into CarDetailViewController
< Code> CarTableViewController comes from the tutorial. Possibly, in the class UITableViewController
is extended (which is based on the tableview
is the property) and a custom carmakes
property.
But it is only related to a specific case. I think it's important to understand that the error you got means , so that you can decide how to do this in the future. Your code was referring to the properties that could not be found, because they are not present. This is the reason that you have encountered an error stating that the properties could not be found, it is actually a very simple error message.
Comments
Post a Comment