Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,679 results found

Post

Replies

Boosts

Views

Activity

NSTextAttachment lagging in textkit 2
I have an attributedString with 100 NSTextAttachments(contains image of 400kb). When i scroll the textview, it is lagging, When i did the same in textkit 1, it is butter smooth. It can be because of how textkit 1 & 2 layout the elements. let attachment = NSTextAttachment() attachment.image = UIImage(named: image2) let attachmentString = NSAttributedString(attachment: attachment) let mutableAttributedString = NSMutableAttributedString(attributedString: textView.attributedText) for _ in 0...100 { mutableAttributedString.append(NSAttributedString(string: n)) mutableAttributedString.append(attachmentString) } textView.attributedText = mutableAttributedString How to handle images in textkit 2 so that it feels smooth while scrolling textview?
1
0
480
Feb ’25
Multipeer Connectivity between two iPads and bluetooth pairing between two iPads not working
I am writing to seek assistance with a persistent issue I am encountering with Bluetooth pairing and Multipeer Connectivity on two iPad devices ((Model: [iPad Pro (11 inch,2nd generation)] and Model: [iPad (6th generation)) and running iOS [iOS 16.6] Issue Description: Bluetooth Pairing Problem: I am unable to establish a Bluetooth connection between two iPad devices. Despite following the usual steps for pairing devices, such as enabling Bluetooth and ensuring both devices are discoverable, the pairing process is not successful. This issue prevents the devices from communicating over Bluetooth. But when I try to pair these two iPads with different iPhone , Bluetooth pairing is successful. Multipeer Connectivity Issue: Additionally, due to the failed Bluetooth pairing, the Multipeer Connectivity framework on these devices is not functioning as expected. Multipeer Connectivity relies on Bluetooth and Wi-Fi for nearby device discovery and communication. As a result, my application, wh
0
0
1k
Sep ’23
Reply to Storing static string secure
You keep writing ‘Store securely’. That is a good question and you received two answers 1) in the keychain and 2) by adding or changing certain characters so only your app’s hard code can decode it. But your real question is ‘how can I place a secret token in my app’ and for that question only #2 is applicable.
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’19
TextureResource.DrawableQueue broken in VisionOS 2?
I have an input texture in a ShaderGraphMaterial. I use .replace(withDrawables:) to replace the texture with a drawable queue. When I present drawables to this queue, nothing happens in VisionOS 2. The drawables are not presented, I can't get any more via nextDrawable() because the unpresented ones are holding things up. This is with both bgra8Unorm_srgb and rgba16float formats. I have confirmed the material applied to my object has the modified texture resources on them. It was working in VisionOS 1.2. What changed in VisionOS 2 to cause this?
3
0
788
Jun ’24
How to test a multiplayer game with two devices
I am new to iOS game development and have been trying without success to set up a simple test environment to test the invitation process for my game. I am very confused about how iTunes connect is supposed to work. To test a two player real time game do I need to set up two new apple IDs in iTunes connect? If so, then what? I have an iPod and and iPhone I'm using to test the game. Do I need to log out of the current apple ID on each of those devices and then log in with the new apple IDs? Both devices are logged into GameCenter and I see the devices sending messages to each other to start the game but when I click on the invitation on the receiving device, the sending device just spins waiting for the invitation to be accepted and never runs the didFind protocol code in the GKMatchmakerViewController class. Thank you in advance for your help.
3
0
2.1k
Jan ’18
StoreKit 2 Transaction.currentEntitlements questions
Hi, I'm starting using StoreKit 2 and I have some questions regarding transactions. To check which non-consumable in-app purchases the user has purchased, immediately after starting the app I look at Transaction.currentEntitlements. That's working fine, but I have some questions about it. Question 1: What happens if the user is not connected to the internet? Will Transaction.currentEntitlements still return data? Question 2: What happens if the user sign out from the AppStore? Will Transaction.currentEntitlements be empty? Question 3: What happens if the user sign in AppStore with different credentials? Transaction.currentEntitlements will return the transaction of the new AppStore user? Thank you
0
0
883
May ’22