Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode - 8.0, Working Fine in Xcode 7.3 -up to iOS(9.3) Crash in Xcode 8 - iOS 10 #1624

Closed
KushThakkar opened this issue Oct 8, 2016 · 7 comments
Assignees

Comments

@KushThakkar
Copy link

Hello,
I am using BarChart and its working fine upto 7.3 and Its not support in iOS 10 and App go to Crash.
Now I am run my Project in XCode 8. Now Its going to Crash.

I am using Below code. Please Review It. Please give Suggestion steps for Solve this.

cell.viewBarChart.data = self.setChartBarGroupDataSet(arrAgeGrop, values: arrPositive, values2:arrNegative, sortIndex: 1)

For Set The Data -

func setChartBarGroupDataSet(dataPoints: [String], values: [Double], values2: [Double],sortIndex:Int)-> BarChartData {

    var dataEntries: [BarChartDataEntry] = []
    var dataEntries2: [BarChartDataEntry] = []
    for i in 0..<dataPoints.count {
        let dataEntry = BarChartDataEntry(value: values[i], xIndex: i)
        dataEntries.append(dataEntry)
    }
    for i in 0..<dataPoints.count {
        let dataEntry = BarChartDataEntry(value: values2[i], xIndex: i)
        dataEntries2.append(dataEntry)
    }
    let chartDataSet = BarChartDataSet(yVals: dataEntries, label: "Pos")
    let chartDataSet2 = BarChartDataSet(yVals: dataEntries2, label: "Neg")
    chartDataSet2.colors =  [UIColor.redColor()]
    chartDataSet.colors =  [UIColor.greenColor()]
    let dataSets: [BarChartDataSet] = [chartDataSet,chartDataSet2]
    let data = BarChartData(xVals: dataPoints, dataSets: dataSets)
    return data
}
@cloudjanak
Copy link

+1 same issue

@cloudjanak
Copy link

screen shot 2016-10-08 at 12 46 50 pm
Please check screenshot

@liuxuan30
Copy link
Member

I need the crash log to identify.
But have you update your library? What version or branch of the library you are using?

@danielgindi
Copy link
Collaborator

Some race conditions in Charts 3.0 have been fixed in the last few days. So you might want to pull master

@pmairoldi
Copy link
Collaborator

For the error you have setup your interface builder stuff incorrectly. You need to specify the module probably.

@pmairoldi pmairoldi self-assigned this Oct 12, 2016
@madhikarma
Copy link

Hi @KushThakkar Did you manage to resolve your issue here by using the latest code from master? Have you tried what was suggested above regarding Interface Builder or tried using code instead? Let us know if you are still have trouble here

@danielgindi
Copy link
Collaborator

I actually think that the problem is correct Interface Builder references to the class names, as @petester42 suggested, or a Clean & Build.

Since no response has been posted in 10 days, I'm going to assume he figured it out already...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants