I need to implement a function that can be used multiple times. For that i have swift code. Can anyone convert it into objective C :      func getdata(_ send: NSString)
    {
        
        let url=URL(string:send as String)
        do
        {
            let allContactsData = try Data(contentsOf: url!)
            let allContacts = try JSONSerialization.jsonObject(with: allContactsData, options: JSONSerialization.ReadingOptions.allowFragments) as! [String : AnyObject]
            print(allContacts)
            if let musicJob = allContacts["Attendance"] as? [Any], !musicJob.isEmpty
            {
                print(musicJob)
                dataArray = allContacts["Attendance"] as! NSArray
                print(dataArray)
                
            }

let send: String = String(format:"http:xyz",loadedUserName,studentId,row+1)
        self.getdata(send as NSString)

> How to convert this into objective C, Any help pls. I need to use this  func getdata(_ send: NSString)
multiple times