title: iOS - Not able to access Static method of swift class
body: <p>I want to access <strong>Swift code in Objective-c</strong>.</p>
  
  <p>I have written one class in swift which contains static method. I want to access that Static Method in objective C Class.</p>
  
  <p>Here is Class declaration:</p>
  
  <pre><code>@objc class LocalizedResource: NSObject {
  
      /*!
      * @discussion This function will get localize string for key
  
      * @param key Localize key
      * @return String for locaized key
      * @code LocalizedResource.getStringForKey(key);
      */
      static func getStringForKey(key:String) -&gt; String    {
          let frameworkBundle = NSBundle.mainBundle()
          let value = frameworkBundle.localizedStringForKey(key, value: nil, table: nil)
          return value;
      }
  }
  </code></pre>
  
  <p>I have made following settings for it: </p>
  
  <ol>
  <li>Product Module Name : MyProject</li>
  <li>Defines Module : YES</li>
  <li>Embedded Content Contains Swift : YES</li>
  <li>Install Objective-C Compatibility Header : YES</li>
  <li>Objective-C Bridging Header : $(SRCROOT)/MySources/SwiftBridgingHeader.h</li>
  </ol>
  
  <p>Also I have added <strong>@Obj</strong> before my class declaration in Swift class.</p>
  
  <p>I have import MyProject-Swift.h in the .m file where I want to access that method.</p>
  
  <p>But when I am trying to access it, it is not allowing me to access that static method.</p>
  
  <p>Is any one having solution for it? Is there something missing?</p>
  
  <p>Thnaks.</p>