title: how to implement one radio button to be active while selecting it?
body: <p>I am having table view and on table view cell the radio button has been placed and the radio buttons may increase or decrease dynamically when I select one radio button the other buttons should not active at a time here is the code I used for selecting a button but I am unable to make other button inactive at a time    </p>
  
  <pre><code> func paymentMethodURL() {
      let url = NSURL(string: self.paymentmethodURL)
      URLSession.shared.dataTask(with: (url as URL?)!, completionHandler: {(data, response, error) -&gt; Void in
          if let jsonObj = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments) as? NSDictionary {
               self.paymentmethodsArray = (jsonObj!.value(forKey: "payment method") as? [[String: AnyObject]])!
              OperationQueue.main.addOperation({
                  self.tableDetails.reloadData()
              })
          }
      }).resume()
  }
  func paymentreviewURL() {
      let url = NSURL(string: self.paymentReviewURL)
      URLSession.shared.dataTask(with: (url as URL?)!, completionHandler: {(data, response, error) -&gt; Void in
          if let jsonObj = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments) as? NSDictionary {
              let arrayss = jsonObj?.allKeys
                  OperationQueue.main.addOperation({
  
              })
          }
      }).resume()
  }
  @IBAction func selectRadioButton(_ sender: KGRadioButton) {
      sender.isSelected = !sender.isSelected
  
      if sender.isSelected {
  
      } else{
  
      }
  }
  func numberOfSections(in tableView: UITableView) -&gt; Int{
      return 1
  }
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return paymentmethodsArray.count
  }
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let paymentcell = tableView.dequeueReusableCell(withIdentifier: "cell",for:indexPath) as! paymentTableViewCell
      tableDetails.isHidden = false
      myActivityIndicator.stopAnimating()
      let arr = self.paymentmethodsArray[indexPath.row]
      paymentcell.paymentNameLabel.text = arr["name"]as? String
      return paymentcell
  }
  </code></pre>