0

I am new learning swift and objective c, I am facing a problem and hope any one can hep me

I have the following swift file

class DataManager {

    var splash : SplashResponse
    var categories : CategoriesResponse
    var banners : BannersResponse

    static let instance = DataManager()

    init () {

        splash = SplashResponse.init();
        categories = CategoriesResponse.init();
        banners = BannersResponse.init();
    }
}

it is a singlton class to allow me to store some data in application memory, I want to access this data in a method exist in another objective c file

How can I do that ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Amira Elsayed Ismail
  • 9,216
  • 30
  • 92
  • 175

1 Answers1

0

Here you go, this is an amazing guide for seeing Objective-C/Swift code in the opposite language (you might have to scroll down): https://stackoverflow.com/a/24005242/5700898

Community
  • 1
  • 1
owlswipe
  • 19,159
  • 9
  • 37
  • 82