Post

Replies

Boosts

Views

Activity

Reply to App Crashes on iPhone 15 Pro and iPhone 16 After App Store Installation
Update (belated but hopefully helpful): I originally posted this on January 26 and meant to follow up sooner — life got pretty busy with some personal situations, and it slipped through the cracks. I wanted to provide closure in case anyone else runs into something similar. After further testing, I discovered that the issue wasn’t with the app itself or with newer iPhone models. The root cause turned out to be a version mismatch. Both friends told me they were running iOS 18, but it turns out neither of them had actually updated their devices. They thought they had, but they were still on earlier versions — and those were the devices that were crashing. What made things especially confusing was that the app worked flawlessly on simulators for the same models, and I was comparing behavior against another friend’s iPhone 16 Pro Max that was running iOS 18 via TestFlight — and that one had no issues at all. Lesson learned: Always double-check the actual iOS version on physical devices when troubleshooting. Don’t assume based on what someone says — even well-meaning friends can unintentionally steer you in the wrong direction. Verifying this early can save a lot of time and stress. Thanks again to everyone who read or offered support — really appreciate this community!
Topic: App & System Services SubTopic: General Tags:
Apr ’25
Reply to Can't Select UITextField in UITableView
I figured out the solution. Thank you so much Claude31 your solution put me on the right path. LoginViewController func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: UHTableTextFieldCell.reuseID, for: indexPath) as! UHTableTextFieldCell let titles = loginTableTitle[indexPath.row] cell.set(title: titles) cell.titleLabel.font = UIFont.systemFont(ofSize: 16, weight: .bold) cell.contentView.isUserInteractionEnabled = false // <---- return cell } UHTableTextFieldCell The selection still worked without this next section, but I think I should still include it. private func configure() { addSubviews(titleLabel, tableTextField) self.isUserInteractionEnabled = true // <---- tableTextField.delegate = self // <---- let padding: CGFloat = 12 NSLayoutConstraint.activate([ titleLabel.centerYAnchor.constraint(equalTo: centerYAnchor), titleLabel.leadingAnchor.constraint(equalTo: leadingAnchor, constant: padding), titleLabel.heightAnchor.constraint(equalToConstant: 20), titleLabel.widthAnchor.constraint(equalToConstant: 80), tableTextField.centerYAnchor.constraint(equalTo: centerYAnchor), tableTextField.leadingAnchor.constraint(equalTo: titleLabel.trailingAnchor, constant: 24), tableTextField.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -padding), tableTextField.heightAnchor.constraint(equalToConstant: 20) ]) }
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’24
Reply to How to I move the sectorMark annotation to the outside perimeter of the pie chart?
Thank you so much for this solution, it led me in the right direction. However, that didn't work for me. I ended up putting another sectorMark directly on top of the original chart and extending the inner radius to 100% and the outer radius to about 150%. It's a weird solution, but it works amazingly, and the values change as the pie chart dynamically changes. Chart(pieData) { data in SectorMark(angle: .value("Pie Chart", data.categoryPercentage), angularInset: 1.7) .foregroundStyle(data.color) .cornerRadius(5) } .frame(width: UIScreen.main.bounds.width - piePadding, height: UIScreen.main.bounds.width - piePadding) .chartLegend(.hidden) .chartOverlay { chartProxy in GeometryReader { geometry in let frame = geometry[chartProxy.plotAreaFrame] ZStack { Chart(pieData) { data in SectorMark(angle: .value("Pie Chart", data.categoryPercentage), innerRadius: .ratio(1), outerRadius: .ratio(1.5), angularInset: 1.7) .foregroundStyle(by: .value("Category", data.category)) .cornerRadius(5) .annotation(position: .overlay) { Text("\(String(format: "%.2f", ((Double(data.categoryPercentage) / totalPercentage) * 100.0)))%,\n\(data.categoryPercentage) pts") .bold() .padding(.bottom, 250*sin(data.angle)) } } .chartLegend(.hidden) } .frame(width: UIScreen.main.bounds.width - piePadding + 75, height: UIScreen.main.bounds.width - piePadding + 75) .position(x: frame.midX, y: frame.midY)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’24