Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,647 results found

Post

Replies

Boosts

Views

Activity

Performance Issues with UITextView and TextKit 2
I've been working with UITextView and TextKit 2, which became the default text engine since iOS 16, and I've encountered performance issues when handling very large text documents. Even on iPhone 14 Pro, I've noticed stuttering and frame drops when scrolling through the text view containing a large amount of text. To reproduce the issue, you can use the following code: // In iOS 16 let textView = UITextView() textView.text = some really large string (say 1 million characters) The scrolling performance in this scenario is not smooth. However, if you switch to TextKit 1 by accessing the layoutManager property, the performance significantly improves: // In iOS 16 let textView = UITextView() let _ = textView.layoutManager // this enables the compatibility mode textView.text = some really large string (say 1 million characters) With this code, scrolling remains smooth even with large text documents. It's very disappointing to see TextKit 2 performing worse than TextKit 1, even t
2
0
2.4k
May ’23
Where's my code?
Seasoned C developer with i86 and embedded hardware but new to ios. I built a screen with two buttons in Swift. But where is the source code? I see source listings that look like frameworks but nothing that contains my two buttons. My next step is to assign a TCP/IP data string to each button. What library would be recommended for that? TIA
1
0
407
Dec ’21
Apple Watch 2 Factor Authentification
I have changed my MacBook Air, the iMac and a iPhone 6S to 2 Factor Authentification. in iCloud Settings i can see my Devices. When i click on my Apple Watch, it says: This device can not be used to obtain an Apple ID code. See (german) Screenshot: http://i64.tinypic.com/2450q6h.png Is it possible to add an Apple Watch to 2 Factor Authentification? Tweak
1
0
571
Jul ’16
playgrounds/ learn to code 2/ 3 gems, 4 switches/ problem with conditons in while loop
hello all,I am at the beginning of learning swift with the ipad playgrounds.in the chapter, where you have to go through a labyrinth till you collected 3 gems and toggled 4 switches, I have the following problem.ar numberGem = 0 var numberSwitch = 0 } func direction() { if isBlocked && isBlockedLeft { turnRight() } else if isBlocked && isBlockedRight { turnLeft() } } func gemSwitchVar() { if isOnGem { collectGem() numberGem += 1 } else if isOnClosedSwitch { toggleSwitch() numberSwitch += 1 } } while numberGem < 4 && numberSwitch < 5 { gemSwitchVar() direction() moveForward() }the while loop always stops after the figure collected 3 gems. It does not continue till it also toggled 4 switches. I always thought that with AND both conditions had to be fullfilled. And the OR operator would display the behaviour it does now.I had the same problem with a while loop in an earlier chapter where I tried a while loop likewhile !isBlocked && !isBlockLeft && !isBlockedRightto m
2
0
5.6k
Mar ’19
Two finger swipe on a UIImage
The code below allows the user to do a 2 finger swipe down on an imageView and thus presenting a popover/actionSheet. That process works fine. Normally it is possible to tap outside the popover/actionSheet to close it.The problem is that once the popover/actionSheet is presented, it doesn't allow tapping the background to close the popover/actionSheet. You actually need to tap inside the popover/actionSheet to close it.There are other places in the app that present a popover/actionSheet but these are presented using a simple button tap.Here's the really weird scenario. If I do the 2 finger swipe on the imageView and open the popover/actionSheet, the inability to tap the backGround is broken on all the other popover/actionSheet in the app too. If I bypass the 2 finger swipe on the imageView all of the other popover/actionSheet work as normal.I've stripped out all the code other than what's needed to present the popover/actionSheet. And I created a new project with o
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
836
May ’20
Two apps into one
Can we submit an app that shows a facade to select which app(web project) to go to for eg: If my app is Banking App can I have a home page that says Corporate Accounts or Credit CardsCorporate Accounts and Credit Cards are two separate web applications made using same technology stack wrapped in cordovaTo summarise I have 2 corodva apps and want to make them as 1 app
1
0
289
Jun ’15
How can I include two apps in one bundle?
I have a client who has two existing ATV apps, which are distinct apps, but are fairly similar. Their Apple rep suggested that they package both apps together and add some bootstrap code to switch between the two. I'm not sure how to do the bundling. I think I know how to do the switching (inside main.m before return UIApplicaitonMain). I just don't know what I need to do to add the two app binaries under one package. I found some articles suggesting that I make each app into a Framework. However, that seems unnecesarily too complex.Any ideas?Thanks
0
0
350
Oct ’15
Performance Issues with UITextView and TextKit 2
I've been working with UITextView and TextKit 2, which became the default text engine since iOS 16, and I've encountered performance issues when handling very large text documents. Even on iPhone 14 Pro, I've noticed stuttering and frame drops when scrolling through the text view containing a large amount of text. To reproduce the issue, you can use the following code: // In iOS 16 let textView = UITextView() textView.text = some really large string (say 1 million characters) The scrolling performance in this scenario is not smooth. However, if you switch to TextKit 1 by accessing the layoutManager property, the performance significantly improves: // In iOS 16 let textView = UITextView() let _ = textView.layoutManager // this enables the compatibility mode textView.text = some really large string (say 1 million characters) With this code, scrolling remains smooth even with large text documents. It's very disappointing to see TextKit 2 performing worse than TextKit 1, even t
Replies
2
Boosts
0
Views
2.4k
Activity
May ’23
Where's my code?
Seasoned C developer with i86 and embedded hardware but new to ios. I built a screen with two buttons in Swift. But where is the source code? I see source listings that look like frameworks but nothing that contains my two buttons. My next step is to assign a TCP/IP data string to each button. What library would be recommended for that? TIA
Replies
1
Boosts
0
Views
407
Activity
Dec ’21
Apple Watch 2 Factor Authentification
I have changed my MacBook Air, the iMac and a iPhone 6S to 2 Factor Authentification. in iCloud Settings i can see my Devices. When i click on my Apple Watch, it says: This device can not be used to obtain an Apple ID code. See (german) Screenshot: http://i64.tinypic.com/2450q6h.png Is it possible to add an Apple Watch to 2 Factor Authentification? Tweak
Replies
1
Boosts
0
Views
571
Activity
Jul ’16
How to download metal 2?
i am on the metal 2 info page, but I cannot find a link to download it? Thanks for your help.
Replies
1
Boosts
0
Views
12k
Activity
Aug ’17
playgrounds/ learn to code 2/ 3 gems, 4 switches/ problem with conditons in while loop
hello all,I am at the beginning of learning swift with the ipad playgrounds.in the chapter, where you have to go through a labyrinth till you collected 3 gems and toggled 4 switches, I have the following problem.ar numberGem = 0 var numberSwitch = 0 } func direction() { if isBlocked && isBlockedLeft { turnRight() } else if isBlocked && isBlockedRight { turnLeft() } } func gemSwitchVar() { if isOnGem { collectGem() numberGem += 1 } else if isOnClosedSwitch { toggleSwitch() numberSwitch += 1 } } while numberGem < 4 && numberSwitch < 5 { gemSwitchVar() direction() moveForward() }the while loop always stops after the figure collected 3 gems. It does not continue till it also toggled 4 switches. I always thought that with AND both conditions had to be fullfilled. And the OR operator would display the behaviour it does now.I had the same problem with a while loop in an earlier chapter where I tried a while loop likewhile !isBlocked && !isBlockLeft && !isBlockedRightto m
Replies
2
Boosts
0
Views
5.6k
Activity
Mar ’19
Two finger swipe on a UIImage
The code below allows the user to do a 2 finger swipe down on an imageView and thus presenting a popover/actionSheet. That process works fine. Normally it is possible to tap outside the popover/actionSheet to close it.The problem is that once the popover/actionSheet is presented, it doesn't allow tapping the background to close the popover/actionSheet. You actually need to tap inside the popover/actionSheet to close it.There are other places in the app that present a popover/actionSheet but these are presented using a simple button tap.Here's the really weird scenario. If I do the 2 finger swipe on the imageView and open the popover/actionSheet, the inability to tap the backGround is broken on all the other popover/actionSheet in the app too. If I bypass the 2 finger swipe on the imageView all of the other popover/actionSheet work as normal.I've stripped out all the code other than what's needed to present the popover/actionSheet. And I created a new project with o
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
3
Boosts
0
Views
836
Activity
May ’20
Two back buttons
Document based app on 17.5 has two back buttons, but 17.0 as only one. Did anyone experience this?
Replies
1
Boosts
0
Views
528
Activity
May ’24
watchos 2 beta 2
Has anyone not gotten the over the air update yet i still havent and i want to make sure im not the only one thanks
Replies
28
Boosts
0
Views
5k
Activity
Jun ’15
Two apps into one
Can we submit an app that shows a facade to select which app(web project) to go to for eg: If my app is Banking App can I have a home page that says Corporate Accounts or Credit CardsCorporate Accounts and Credit Cards are two separate web applications made using same technology stack wrapped in cordovaTo summarise I have 2 corodva apps and want to make them as 1 app
Replies
1
Boosts
0
Views
289
Activity
Jun ’15
Swift 2 timeline
Is there any offical word on the Swift 2 rollout? Is it launching with iOS 9/OS X or is Xcode 7 planned to be released before the fall?
Replies
3
Boosts
0
Views
988
Activity
Jun ’15
Airplay 2 and Sonos
I’m finding the volume played through ITunes and Airplay 2 to my Sonos speaker is lower than if I use just the Sonos App. Anyone experiencing this?
Replies
0
Boosts
0
Views
872
Activity
Aug ’18
Reply to Is there any difference between swift and C++ for `pid_t` type?
I have defined two different structures with same variables in both swift code and kernel space. As I already wrote, two structs are not the same.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’20
iOS11 beta 2
How soon are apple most likey releasing beta version 2 to iOS11? and same goes for the apple watch?Thanks
Replies
6
Boosts
0
Views
3.8k
Activity
Jun ’17
How do you start the watchkit 1 to 2 migration?
I started the new Xcode, after converting to new standard and Swift, nothing seems to change, it is still the same old WatchKit model (iPhone app runs code). How do I convert to WatchKit 2?
Replies
1
Boosts
0
Views
444
Activity
Jun ’15
How can I include two apps in one bundle?
I have a client who has two existing ATV apps, which are distinct apps, but are fairly similar. Their Apple rep suggested that they package both apps together and add some bootstrap code to switch between the two. I'm not sure how to do the bundling. I think I know how to do the switching (inside main.m before return UIApplicaitonMain). I just don't know what I need to do to add the two app binaries under one package. I found some articles suggesting that I make each app into a Framework. However, that seems unnecesarily too complex.Any ideas?Thanks
Replies
0
Boosts
0
Views
350
Activity
Oct ’15