title: No visible @interface for "NSMutableArray" devlares the selector 'addObject:initWithBackgroundImage:'
body: <p>I'm finding this error in my project </p>
  
  <p>No visible @interface for "NSMutableArray" devlares the selector 'addObject:initWithBackgroundImage:'</p>
  
  <p>here is the background.h </p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface background : NSObject
  
  
  @property (strong,nonatomic) NSString *backgroundImage;
  
  -(id)initWithBackgroundImage:(NSString *)bImage;
  
  @end
  </code></pre>
  
  <p>and the background.m</p>
  
  <pre><code>#import "background.h"
  
  @implementation background
  @synthesize backgroundImage;
  
  -(id)initWithBackgroundImage:(NSString *)bImage{
      self = [super init];
      if (self) {
  
      backgroundImage = bImage;
  
      }
      return self;
  }
  @end
  </code></pre>
  
  <p>here is the problem in my code when I try to get the background from server </p>
  
  <pre><code>-(void) getBackgroundImage{
      NSURL *backgroundURL = [NSURL URLWithString:getBackground];
      NSData *backgroundData = [NSData dataWithContentsOfURL:backgroundURL];
  
      backgroundJason = [NSJSONSerialization JSONObjectWithData:backgroundData options:kNilOptions error:nil];
      backgroundArray = [[NSMutableArray alloc] init];
  
      for (int i = 0; i&lt;backgroundArray.count; i++) {
          NSString *bImage = [[backgroundArray objectAtIndex:i]objectForKey:@"background_image"];
  
          [backgroundArray addObject:[background alloc] initWithBackgroundImage:bImage];
      }
  
  
  
  
  }
  </code></pre>