Post

Replies

Boosts

Views

Activity

Reply to BUG: **** YOU APPLE
**** I hope it is to hide a compliment… Otherwise it would be absolutely inappropriate, and not the best way to ask for help.
Jul ’24
Reply to Peculiar EXC_BAD_ACCESS, involving sparse matrices
Welcome to the forum. This code may be readable for you, but without any comment, it is a headache, at least for me, to really understand … So I may miss something in your code. If I understand what you are doing in static func leastSquaresSolution(A: [[Double]], B: [Double]) -> [Double] { you are computing and return xValues This should be done by manipulating xPtr. Correct ? xValues.withUnsafeMutableBufferPointer { xPtr in xValues is initialised with 0.0 values. Where do you update xPtr, which would modify xValues before you return it ?
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’24
Reply to How on earth do I get the actual dimensions of a presented modal view on iPad?
Could you show the complete code so that we can better understand what happens (it would even be better to have a reproductible example) ? Maybe self in self.view.frame.size.width is just referring to the parent view and not settingsView. You could also try const int viewWidth = settingsView.view.frame.size.width; or get the width in the completion handler, to be sure you refer to the correct object.
Topic: UI Frameworks SubTopic: UIKit
Jun ’24
Reply to BUG: **** YOU APPLE
**** I hope it is to hide a compliment… Otherwise it would be absolutely inappropriate, and not the best way to ask for help.
Replies
Boosts
Views
Activity
Jul ’24
Reply to Peculiar EXC_BAD_ACCESS, involving sparse matrices
Welcome to the forum. This code may be readable for you, but without any comment, it is a headache, at least for me, to really understand … So I may miss something in your code. If I understand what you are doing in static func leastSquaresSolution(A: [[Double]], B: [Double]) -> [Double] { you are computing and return xValues This should be done by manipulating xPtr. Correct ? xValues.withUnsafeMutableBufferPointer { xPtr in xValues is initialised with 0.0 values. Where do you update xPtr, which would modify xValues before you return it ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to How on earth do I get the actual dimensions of a presented modal view on iPad?
Could you show the complete code so that we can better understand what happens (it would even be better to have a reproductible example) ? Maybe self in self.view.frame.size.width is just referring to the parent view and not settingsView. You could also try const int viewWidth = settingsView.view.frame.size.width; or get the width in the completion handler, to be sure you refer to the correct object.
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Jun ’24