Commit 817be78d authored by lujunye's avatar lujunye

修改btn范围

parent 114ffb05
...@@ -906,6 +906,19 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -906,6 +906,19 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
var locationIsOpen = false var locationIsOpen = false
func checkLocation(){ func checkLocation(){
// if ((CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Authorized) || (CLLocationManager.authorizationStatus() == CLAuthorizationStatus.NotDetermined)) && (CLLocationManager .locationServicesEnabled()){
//
// //定位开启了
//
// }else if CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Denied{
//
//   //定位没有开启
//
//     }
if CLLocationManager.locationServicesEnabled(){ if CLLocationManager.locationServicesEnabled(){
locationIsOpen = true locationIsOpen = true
......
...@@ -72,6 +72,7 @@ class OtherDemandViewController: BaseViewController ,UITableViewDelegate,UITable ...@@ -72,6 +72,7 @@ class OtherDemandViewController: BaseViewController ,UITableViewDelegate,UITable
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndSelectCell") as! TitleAndSelectCell let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndSelectCell") as! TitleAndSelectCell
let data = (carModel?.spec_req_arr![indexPath.row]) let data = (carModel?.spec_req_arr![indexPath.row])
cell.titleLbl.text = data?.name cell.titleLbl.text = data?.name
cell.selectBtn.isUserInteractionEnabled = false
cell.tag = indexPath.row cell.tag = indexPath.row
if cell.tag == selectArr[indexPath.row] { if cell.tag == selectArr[indexPath.row] {
cell.selectBtn.isSelected = true cell.selectBtn.isSelected = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment