How to write init method in Swift?

前端 未结 4 1031
死守一世寂寞
死守一世寂寞 2020-12-05 02:37

I want to write an init method in Swift. Here I initialize an NSObject class in Objective-C:

-(id)initWithNewsDictionary:(NSDiction         


        
4条回答
  •  再見小時候
    2020-12-05 03:13

    Do not need for call this method from other class it will get called automatically

    override init()
    {
        super.init()
        // synthesize.delegate = self
        // println("my array elements are \(readingData)")
    }
    

提交回复
热议问题