0

I have implemented the code available in the below link to get the WiFi gateway address.

How to get the WIFI gateway address on the iPhone?

When I am trying to access the method (written in Objective C) which returns the gateway address, from the Swift class, it shows the following error. "Use of undeclared type 'DummyClass' "

The swift code snippet where I am getting error is:

class ViewController: UIViewController,UIImagePickerControllerDelegate, UINavigationControllerDelegate {

var instanceOfCustomObject: dummyClass = dummyClass()   //While initialising instanceOfCustomObject, the above said error comes.

PS: Bridging header for integration of Objective-C code with Swift code also has been added.

Any help to resolve the above issue is highly appreciated.Thank You!!

Community
  • 1
  • 1
ANUVIND
  • 73
  • 4
  • Possible duplicate of [How to call Objective C code from Swift](http://stackoverflow.com/questions/24002369/how-to-call-objective-c-code-from-swift) – nhgrif Apr 09 '16 at 13:10
  • 1
    Does it say undeclared type 'DummyClass'` or 'dummyClass'? Code and error message would never be seen together. And is your class declaration properly using upper case character or lower case character. – nhgrif Apr 09 '16 at 13:11

0 Answers0