Post

Replies

Boosts

Views

Activity

Reply to Trying to Connect an Outlet to a Gesture Recogniser in Storyboard
You do not provide enough information about you proceeded. Did you do those steps ? create a tapGesture in storyboard by dragging the object in the viewController structure ? -> Could you show the attributes inspector of the tapGesture ? you control dragged in storyboard from the tapGesture to the label object in the viewController structure (in storyboard)? -> Do you see the tapGesture listed Connections inspector of the label? You say: When I connect the outlet to the gesture recogniser I get this error: How exactly do you try to connect ? Is it the label in storyboard or IBOutlet in code (you should not do it) ? Please clarify   How can I connect the tap gesture recogniser in storyboard to my code? What do you want to connect exactly in code ? You don't have to connect the tapGesture to the label IBOutlet in code. The connection is made in storybaord as explained before. If you want to declare an action for the tapGesture, then create the IBAction @IBAction func tapped(_ sender: UITapGestureRecognizer) { } select the tapGesture in stroryboard corntrol-drag from the tapgesture to the IBAction -> You should now see "tapped" in the connections inspector of the tapGesture in the sent actions section. It seems you have tried to connect the incrementNumberOfTaps action to the cell and not to the tapGesture.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Reply to Cell Delegate Method Not Being Called
When looking at code in documentation, registration is done differently, by creating a default content configuration and then adjusting: let cellRegistration = UICollectionView.CellRegistration<UICollectionViewListCell, Int> { cell, indexPath, item in var contentConfiguration = cell.defaultContentConfiguration() contentConfiguration.text = "\(item)" contentConfiguration.textProperties.color = .lightGray cell.contentConfiguration = contentConfiguration } Could you also test with a log: let mainCellRegistration = UICollectionView.CellRegistration<EmotionExplorerCell, Item> { cell, indexPath, item in print("cell", cell, indexPath, item) // <<-- ADD THIS switch item { case .main(emotion: let emotion, icon: let iconName, red: let red, green: let green, blue: let blue) : cell.configure(iconName: iconName, title: emotion, red: red, green: green, blue: blue) cell.index = indexPath.row cell.delegate = self case .title(title: -, buttonTitle:
Topic: UI Frameworks SubTopic: UIKit
Jul ’25
Reply to Cell Delegate Method Not Being Called
However, calling the cell delegate method from the cell is not calling the method in the view controller. It's not very clear.   calling the cell delegate method from the cell Which method is it ? repromptLLMForIconName ?   is not calling the method in the view controller. Which method is it ? Have you checked that delegate is not nil ? print("delegate", delegate) delegate?.repromptLLMForIconName(iconName, index: index, emotion: emotion, red: red, green: green, blue: blue)
Topic: UI Frameworks SubTopic: UIKit
Jul ’25
Reply to No more simulators showing in Xcode
I cleaned Xcode caches. I reinstalled Xcode 14.2 To no avail. If I try to add simulator, then look at the simulators list, I get a whole bunch of(all for iOS 16.2). But no one appear in the target list for compiling. I'll try solution proposed here: https://stackoverflow.com/questions/78372541/xcode-doesnt-show-simulators Even though XProtectPayloads. If it says 151, it doesn' work. I updated system to the latest available for this MacBook. No change. I disabled xprotect. No change.
Jun ’25
Reply to How can I have a view cover the status bar?
In UIKit, you can call override var prefersStatusBarHidden: Bool { return true } In SwiftUI, equivalent by calingl the modifier: struct ContentView: View { var body: some View { Text("Hello, World!") .statusBar(hidden: true) } } More details here: https://medium.com/app-makers/how-to-hide-the-status-bar-in-swiftui-all-methods-explained-07eeca7ac3d6
Topic: UI Frameworks SubTopic: SwiftUI
Jun ’25
Reply to Epic games website sign in page
We all would like all bugs to fixed immediately, at our will. But that does not work like this. iOS 26 is a beta, with all the potential issues. You use it at your own risk But you can: report a bug in feedback assistant use a released version of iOS contact the web site.The problem may be on their side.
Topic: Safari & Web SubTopic: General
Jun ’25
Reply to App
That is not a question for this forum, which is about your app development, not about using apps. Don't forget that iOS 26 is beta that you use at your own risks. If you need stability you should stay with a released version. So,you should either: contact TikTok (maybe a users forum) file a bug report
Topic: Community SubTopic: Apple Developers Tags:
Jun ’25
Reply to App rejection but others ok?
If your app is doing exactly the same thing than other apps, it will risk a spam refusal. In any case, it is not an argument that other app have been accepted and hence your app should as well. You don't know the exact content of other apps, nor the explanations they may have provided. You have to focus on your app and answers the questions asked. And provide clear and factual answers, not what you think the reviewer should do… Good luck.
Jun ’25
Reply to "illegal character encoding in string literal" warnings in Xcode
Some of my error messages have characters outside the straight ASCII character set (i.e. "å"). The editor correctly displays these, but I get plenty of Illegal Character warnings and the messages do not display properly. Could you show related code, as well as the exact warnings and a screenshot of messages you get. That will help understand what's happening and hopefully propose solution.
Jun ’25
Reply to Trying to Connect an Outlet to a Gesture Recogniser in Storyboard
You do not provide enough information about you proceeded. Did you do those steps ? create a tapGesture in storyboard by dragging the object in the viewController structure ? -> Could you show the attributes inspector of the tapGesture ? you control dragged in storyboard from the tapGesture to the label object in the viewController structure (in storyboard)? -> Do you see the tapGesture listed Connections inspector of the label? You say: When I connect the outlet to the gesture recogniser I get this error: How exactly do you try to connect ? Is it the label in storyboard or IBOutlet in code (you should not do it) ? Please clarify   How can I connect the tap gesture recogniser in storyboard to my code? What do you want to connect exactly in code ? You don't have to connect the tapGesture to the label IBOutlet in code. The connection is made in storybaord as explained before. If you want to declare an action for the tapGesture, then create the IBAction @IBAction func tapped(_ sender: UITapGestureRecognizer) { } select the tapGesture in stroryboard corntrol-drag from the tapgesture to the IBAction -> You should now see "tapped" in the connections inspector of the tapGesture in the sent actions section. It seems you have tried to connect the incrementNumberOfTaps action to the cell and not to the tapGesture.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to Cell Delegate Method Not Being Called
When looking at code in documentation, registration is done differently, by creating a default content configuration and then adjusting: let cellRegistration = UICollectionView.CellRegistration<UICollectionViewListCell, Int> { cell, indexPath, item in var contentConfiguration = cell.defaultContentConfiguration() contentConfiguration.text = "\(item)" contentConfiguration.textProperties.color = .lightGray cell.contentConfiguration = contentConfiguration } Could you also test with a log: let mainCellRegistration = UICollectionView.CellRegistration<EmotionExplorerCell, Item> { cell, indexPath, item in print("cell", cell, indexPath, item) // <<-- ADD THIS switch item { case .main(emotion: let emotion, icon: let iconName, red: let red, green: let green, blue: let blue) : cell.configure(iconName: iconName, title: emotion, red: red, green: green, blue: blue) cell.index = indexPath.row cell.delegate = self case .title(title: -, buttonTitle:
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Jul ’25
Reply to Cell Delegate Method Not Being Called
However, calling the cell delegate method from the cell is not calling the method in the view controller. It's not very clear.   calling the cell delegate method from the cell Which method is it ? repromptLLMForIconName ?   is not calling the method in the view controller. Which method is it ? Have you checked that delegate is not nil ? print("delegate", delegate) delegate?.repromptLLMForIconName(iconName, index: index, emotion: emotion, red: red, green: green, blue: blue)
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Jul ’25
Reply to No more simulators showing in Xcode
I cleaned Xcode caches. I reinstalled Xcode 14.2 To no avail. If I try to add simulator, then look at the simulators list, I get a whole bunch of(all for iOS 16.2). But no one appear in the target list for compiling. I'll try solution proposed here: https://stackoverflow.com/questions/78372541/xcode-doesnt-show-simulators Even though XProtectPayloads. If it says 151, it doesn' work. I updated system to the latest available for this MacBook. No change. I disabled xprotect. No change.
Replies
Boosts
Views
Activity
Jun ’25
Reply to How can I have a view cover the status bar?
In UIKit, you can call override var prefersStatusBarHidden: Bool { return true } In SwiftUI, equivalent by calingl the modifier: struct ContentView: View { var body: some View { Text("Hello, World!") .statusBar(hidden: true) } } More details here: https://medium.com/app-makers/how-to-hide-the-status-bar-in-swiftui-all-methods-explained-07eeca7ac3d6
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’25
Reply to Epic games website sign in page
We all would like all bugs to fixed immediately, at our will. But that does not work like this. iOS 26 is a beta, with all the potential issues. You use it at your own risk But you can: report a bug in feedback assistant use a released version of iOS contact the web site.The problem may be on their side.
Topic: Safari & Web SubTopic: General
Replies
Boosts
Views
Activity
Jun ’25
Reply to App
That is not a question for this forum, which is about your app development, not about using apps. Don't forget that iOS 26 is beta that you use at your own risks. If you need stability you should stay with a released version. So,you should either: contact TikTok (maybe a users forum) file a bug report
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to App rejection but others ok?
If your app is doing exactly the same thing than other apps, it will risk a spam refusal. In any case, it is not an argument that other app have been accepted and hence your app should as well. You don't know the exact content of other apps, nor the explanations they may have provided. You have to focus on your app and answers the questions asked. And provide clear and factual answers, not what you think the reviewer should do… Good luck.
Replies
Boosts
Views
Activity
Jun ’25
Reply to "illegal character encoding in string literal" warnings in Xcode
Some of my error messages have characters outside the straight ASCII character set (i.e. "å"). The editor correctly displays these, but I get plenty of Illegal Character warnings and the messages do not display properly. Could you show related code, as well as the exact warnings and a screenshot of messages you get. That will help understand what's happening and hopefully propose solution.
Replies
Boosts
Views
Activity
Jun ’25