title: "No known class method for selector" when using static Swift method on Objective-c
body: <p>I have been given Objective C code and I need to add extra functionalities to it. I am very unfamiliar with Objective C so doing the most I possibly could on Swift would be very optimal for me.</p>
  
  <p>This is my Swift file/class:</p>
  
  <pre><code>import Foundation
  import UIKit
  
  @objc class ImageBarSize: NSObject{
  
    static func changeContadorImageSize(img:UIImage, newSize:CGSize) -&gt; UIImage{
      UIGraphicsBeginImageContextWithOptions(newSize, true, 0.0)
      let x:CGFloat = 0
      let y:CGFloat = 0
      img.draw(in: CGRect(x:x,y:y,width:newSize.width,height:newSize.height))
      let newImage:UIImage = UIGraphicsGetImageFromCurrentImageContext()!
      UIGraphicsEndImageContext()
      return newImage;
    }
  }
  </code></pre>
  
  <p>And this is the code on my Objective C .m file:</p>
  
  <pre><code> imgBarCounter = [UIImage imageNamed:@"bar-counter-pd.png"]; 
  
   self.image = [ImageBarSize changeContadorImageSize:imgBarCounter newSize:CGSizeMake(300, 300)];
  </code></pre>
  
  <p>I get the Error "No known class method for selector 'changeContadorImageSize:newSize:'".</p>
  
  <p>I did the whole bridging process and I have</p>
  
  <pre><code> #import &lt;WHS_Live_2-Swift.h&gt;
  </code></pre>
  
  <p>At the beginning of the file, and it all seems to be working fine.
  I've looked through what seemed like similar error threads here on SO, but to no avail. </p>