title: Objective C - IOS - Property not found on object of type - when accessing object variables
body: <p>I'm building a UIView which is connected to a UITableView containing a list of shop items and populated by an array of data which is associated to an object class (shopObjects).</p>
  
  <p>here is my shop objects H file - </p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface shopObjects : NSObject
  
  
  
  @property(strong) NSString *shopITitle;
  @property(strong) NSString *shopIGroup;
  @property(strong) NSString *shopIDesc;
  @property(strong) NSString *shopIPrice;
  @property Boolean offer;
  
  
  -(id)initWithshopITitle:(NSString *)shopITitleD shopIGroup:(NSString *)shopIGroupD shopIDesc: (NSString *)shopIDescD shopIPrice:(NSString *)shopIPriceD offer:(Boolean )offerD;
  
  
  @end
  </code></pre>
  
  <p>Shop Object . M file</p>
  
  <pre><code>#import "shopObjects.h"
  
  @implementation shopObjects
  
  -(id)initWithshopITitle:(NSString *)shopITitleD shopIGroup:(NSString *)shopIGroupD shopIDesc:(NSString *)shopIDescD shopIPrice:(NSString *)shopIPriceD offer:(Boolean )offerD{
  self= [super init];
  if(self){
      self.shopITitle = shopITitleD;
      self.shopIGroup = shopIGroupD;
      self.shopIDesc = shopIDescD;
      self.shopIPrice = shopIPriceD;
      self.offer = (offerD);
  
  
  
  }
  return self;
  
  
  }
  
  
  @end
  </code></pre>
  
  <p>this is my view controller .h file - </p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "shopObjects.h"
  
  @interface shopVCSelectionViewController : UIViewController
  
  @property (weak, nonatomic) IBOutlet UIScrollView *shopResScroller;
  @property (weak, nonatomic) IBOutlet UILabel *ShopItemTitle;
  @property (weak, nonatomic) IBOutlet UITextView *ShopItemDesc;
  @property (weak, nonatomic) IBOutlet UILabel *ShopItemPrice;
  
  @end
  </code></pre>
  
  <p>and VC .m file - </p>
  
  <pre><code>#import "shopVCViewController.h"
  
  @interface shopVCViewController ()
  
  @end
  
  @implementation shopVCViewController
  
  
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  if (self) {
      // Custom initialization
  
  
  
  
    }
    return self;
  }
  
  - (void)viewDidLoad
  {
  [super viewDidLoad];
  // Do any additional setup after loading the view.
  
  //Set Scroller
  [self.shopScroll setScrollEnabled:YES];
  [self.shopScroll setContentSize:CGSizeMake(320, 1100)];
   self.title = @"Shop";
   self.shopArray = [NSArray arrayWithObjects:@"1 x PT session - £25",@"3 for 2 PT sessions     - £50 ",@"1 x Running Club - £15",@"1 x PT session",   nil];
  }
  
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
  return 1;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView
   numberOfRowsInSection:(NSInteger)section
  {
  return [self.shopArray count];
  }
  
  -(UITableViewCell *)tableView:(UITableView *)tableView
      cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  static NSString *CellIdentifier =@"Cell";
  UITableViewCell *cell = [tableView
                           dequeueReusableCellWithIdentifier:CellIdentifier      forIndexPath:indexPath];
  cell.textLabel.text=[self.shopArray  objectAtIndex:indexPath.row];
  
  return cell;
  }
  
  
  
  - (void)didReceiveMemoryWarning
  {
  [super didReceiveMemoryWarning];
  // Dispose of any resources that can be recreated.
  }
  
  @end
  </code></pre>
  
  <p>I am trying to link up the labels/text fields with the relevant object variables - but the shopObjects object / associated variables dont appear in the predictive text and I get the following property not found error - I've no idea why!  Can anyone offer some advice please? </p>
  
  <p><img src="https://i.stack.imgur.com/wYdgg.png" alt="enter image description here"></p>