gpt4 book ai didi

ios - 尝试重新加载 swipeMenuView 时出现 [Unknown process name] CGAffineTransformInvert : singular matrix. 错误

转载 作者:行者123 更新时间:2023-12-05 01:37:55 24 4
gpt4 key购买 nike

最初我点击服务获取数据。获取数据后,我设置了 swipeMenuView(它是用于 swipeAction b/w VC 的第 3 方库)所以,第一次它工作正常但是在我再次从 dropDown 中选择 Year 之后,我正在点击服务以获取新数据并重新加载 swipeMenuView 但是控制台屏幕上没有任何重新加载我得到这个[未知进程名称] CGAffineTransformInvert:奇异矩阵错误我在互联网和计算器中搜索它但我没有得到正确的答案。所以,任何人都可以让我摆脱这个问题请引用我下面的代码,让我知道哪里出了问题。提前致谢。

网络调用获取数据

    func getData(finYearID : Int = 3)
{
guard Reachability.isConnectedToNetwork() else {DispatchQueue.main.async {self.showAlert(message: NoInternet)};return}
DispatchQueue.main.async {
self.showLoading(text: loading)
}

DispatchQueue.global(qos: .userInteractive).async {

OfficerNetworkCalls.shared.getFinancialYears()
{[weak self](financialYears) in
self?.finYears = financialYears.finYears
//update ui for financial Year Button
OfficerNetworkCalls.shared.getDistrictWiseData(finYearID: String(finYearID))
{[weak self] (districtData) in
self?.AllDistrictVC.districtData = districtData
//update ui for districts in dashboard
OfficerNetworkCalls.shared.getAgeWiseChartData(finYearID: String(finYearID))
{[weak self](ageWiseData) in
self?.AllGenderVC.ageData = ageWiseData
//update ui for ageWiseChart in dashboard
OfficerNetworkCalls.shared.getGenderWiseChartData(finYearID: String(finYearID))
{[weak self](genderchartData) in
//update ui for gender chart in dashboard
self?.AllGenderVC.genderData = genderchartData
OfficerNetworkCalls.shared.getBloodGroupWiseChartData(finYearID: String(finYearID))
{[weak self](bloodGroupData) in
//update ui for blood Group data in dashboard
self?.AllBloodGroupVC.bloodGroupData = bloodGroupData
OfficerNetworkCalls.shared.getGovtPvtWiseChartData(finYearID: String(finYearID))
{[weak self](gvtpvtdata) in
//update ui for govtPvt chart in dashboard

DispatchQueue.main.async {
self?.AllGovtPvtVC.govtPvtData = gvtpvtdata
//self?.removeChildVCs()
if self?.isSwipeAdded == true
{
self?.swipemenuView.reloadData()
}
else{
self?.swipeMenuSetup()
}
self?.hideLoading()
}
}//End of gvtPvtSerivce Call

}//End of bloodGroupDataService Call

}//End of GenderWiseSerice Call

}//End of AgeWiseSerice Call


}//End of DistrictWiseSerice Call

}//End of FinancialYearSerice Call


}//End of Background thread black
}

am i correct in hitting multiple serivices?

选择按钮 Action

@IBAction func selectYearButtonAction(_ sender: UIButton) {
print("select button action")
let dropdown = DropDown()//DropDown is 3rd party library for dropdown action
dropdown.dataSource = finYears.map{$0.finYear}
dropdown.anchorView = sender
dropdown.show()
dropdown.selectionAction = {[unowned self](index : Int , item : String) in
sender.setTitle(item, for: .normal)
print(self.finYears[index])
//hitting service to get newData based on finYear
self.getData(finYearID: self.finYears[index].finYearID)
dropdown.hide()

}
}

SwipeMenuSetup 方法

func swipeMenuSetup()
{
isSwipeAdded = true
swipemenuView.delegate = self
swipemenuView.dataSource = self
options.tabView.style = .segmented
options.tabView.margin = 0.0
options.tabView.additionView.underline.height = 2.0
options.tabView.additionView.backgroundColor = UIColor(named: ThemeConstant.bgColor.getTheme())!
options.tabView.backgroundColor = UIColor.white
options.tabView.itemView.textColor = UIColor.darkGray
options.tabView.itemView.selectedTextColor = UIColor.black
options.tabView.itemView.font = UIFont.systemFont(ofSize: CGFloat(12.0))
options.tabView.height = 40
options.tabView.isSafeAreaEnabled = false
swipemenuView.reloadData(options: options)


}

最佳答案

终于找到问题了。问题出在图表(图表的第 3 方库)我正在使用图表来显示数据。当我们收到空数据数组时,我收到此错误,但我不知道为什么会收到此错误

关于ios - 尝试重新加载 swipeMenuView 时出现 [Unknown process name] CGAffineTransformInvert : singular matrix. 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60371017/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com