Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,655 results found

Post

Replies

Boosts

Views

Activity

Regex code from WWDC sample code not working
If I past the samele code import RegexBuilder let fieldSeparator = /s{2,}|t/ let transactionMatcher = Regex { /CREDIT|DEBIT/ fieldSeparator One(.date(.numeric, locale: Locale(identifier: en_US), timeZone: .gmt)) fieldSeparator OneOrMore { NegativeLookahead { fieldSeparator } CharacterClass.any } fieldSeparator One(.localizedCurrency(code: USD).locale(Locale(identifier: en_US))) } It does not like the OneOrMore with the negative look ahead. Is there an updated example of this code from WWDC?
1
0
1.3k
Jun ’22
Combine two applications in to the new one
My company has customers in different cities. The company has developed two the same B2B applications (one application per city).There was some reason to do that, but now we need to combine them in to the new application and after that we will remove old applications. The applications too old and source code was lost. Is it possible to upload two empty applications that contains only link to download new application and some text that we have developed new app? Any other ideas to achieve that?
0
0
194
Dec ’15
Reply to Alternative to subclassing CKDatabaseOperation
Two approaches:1) set up notifications for records being created and when the correct number of notifications come in, do your extra code.2) create a simple counter and increment the counter in the modifyRecordsCompletionBlock (actually, count down to zero) and when the counter hits the correct number execute the extra code.
Topic: App & System Services SubTopic: iCloud Tags:
Oct ’15
Reply to Function not returning values if in a separate file
There are two problems here.1. You have 2 variables called 'scalaRiduz'. They may look the same, but they are completely different. You could have written:var scalaRiduz1111:Double = 0 … func scalaTrafila (…) { var scalaRiduz2222:[Double] = [0, 1, 2] … }Why? Because a 'var' statement always declares a new variable. In your existing code, the 'scalaRiduz' inside the function hides the 'scalaRiduz' outside the function. But they're still different variables.2. This isn't your real code. In your main program, your 'scalaRiduz' isn't even array — it has type Double, not [Double].Here's what I think happened. You had code like this, in a single file:var scalaRiduz:[Double] = [] func scalaTrafila (…) { scalaRiduz:[Double] = [0, 1, 2] // <-- Note that there is NO var } print (scalaRiduz[0]) // prints 0Then you split it into 2 files:var scalaRiduz:[Double] = [0] scalaTrafila () print (scalaRiduz[0])func scalaTrafila () { scalaRiduz:[D
Topic: Programming Languages SubTopic: Swift Tags:
May ’16
Two-Finger DragGesture()
Hi everyone!How can one configure the DragGesture() to fire on two finger input instead of just one. In UIKit this was easily possilbe by setting the minimumNumberOfTouches and maximumNumberOfTouches properties on UIPanGestureRecoginzerThanks in advance!Max
1
0
2k
Apr ’20
Sonama Beta 2
Sonoma Beta 2 isn't showing up in my updates its says up to date. Also when I try to turn the beta profile off it doesn't do anything it just stays in beta profile and checks for an update again. Has anyone else encountered this?
1
0
826
Jun ’23
Issue installing apps with watchOS 2 beta 2
I have trying to install apps after I have upgraded both my iPhone 6 and my Apple Watch.It is taking too long, so I left them syncing overnight. Some apps were installed successfully, some are stuck in installing status.I tried force reboot both devices, the installing is still stuck.alerts keeps poping up:Message out of order in ARFile against Pepper CompanionSync|1.0, attach all logsorMessage out of order in LocAFile against Pepper CompanionSync|1.0, attach all logsI have also checked the release note to find out if this is an known issue.the release notes read:File TransfersKnown IssueFile transfers fail from Watch to iPhone.Workaround: Uninstall and reinstall the Watch appHow do we uninstall the Watch app? Isn't it part of the iOS 9 system? Does that mean restore the phone using official iOS 9 beta 2 firmware?Please help us resolve this issue?
2
0
751
Jun ’15
How to use dataWithRequest in Swift 2?
let session = NSURLSession.sharedSession() if let url = NSURL(string: someURL) { let request = NSMutableURLRequest(URL: url) let task = session.dataTaskWithRequest(request) { (data, response, error) in if data != nil { print(NSString(data: data, encoding: NSUTF8StringEncoding)) } } task?.resume() }This one works fine on Swift 1.2 ( with println and task.resume() ) and I was able to get the data as I expected.But, when I run this code on Swift 2 (Xcode 7) I got rejected from the server. What is the correct way to implement this in Swift 2.0?
2
0
1.9k
Jun ’15
Programmatically determining if my user using Two Step, Two Factor or none
I want to help users enroll into Two Step / Two Factor authentication for iCloud in order to best secure their data.The tool I'm building is a privacy-helper tool that walks users through the nessary steps of achieving better security, and answers questions they may have along the way.To help with this workflow, I want to take my iCloud/ CloudKit app and determine what (if any) actions need to be taken. The only properties I need are:enum:isTwoStepisTwoFactornoneNo other personal information is needed other than that enum. Is this possible, or how can I request this to be a feature?
2
0
435
Apr ’17
Reply to UIAlertController UIAlertAction
the alert action is displayed briefly then it disappears before the user has time to enter anything into the 2 text fields and before the OK button is pressed.I embedded your code in an @IBAction method, and I couldn't have find a behavior as such.The problem may very probably hide somewhere in the lines you have not shown yet.At least two lines of your code: foundLatitude.text = stringLatitude foundLongitude.text = stringLongitudedo not work as expected. (Or I may be mistaking your expectation for these two lines.)They should be in the action handler of OK.Generally, you should not write any code after calling presentViewController:animated:completion: .
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’15
Will 2 environmentObject work?
Ive read posts where you can pass 2 .environmentObject() but what i noticed is that if i call object1.objectWillChange.send() , object2 also is affected is this normal? or supposedly only published properties of object1 only gets affected? discussion quwstion. thoughts?
1
0
467
Dec ’22
WatchKit 2 BatteryLevel?
Hey folks,is there any possibility to access the battery level and state in WatchOS 2 like in iOS?I mean apple use something to show us the level in their widget in iOS 9Any ideas?ThanksFlorian
Replies
3
Boosts
0
Views
296
Activity
Oct ’15
Regex code from WWDC sample code not working
If I past the samele code import RegexBuilder let fieldSeparator = /s{2,}|t/ let transactionMatcher = Regex { /CREDIT|DEBIT/ fieldSeparator One(.date(.numeric, locale: Locale(identifier: en_US), timeZone: .gmt)) fieldSeparator OneOrMore { NegativeLookahead { fieldSeparator } CharacterClass.any } fieldSeparator One(.localizedCurrency(code: USD).locale(Locale(identifier: en_US))) } It does not like the OneOrMore with the negative look ahead. Is there an updated example of this code from WWDC?
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’22
Combine two applications in to the new one
My company has customers in different cities. The company has developed two the same B2B applications (one application per city).There was some reason to do that, but now we need to combine them in to the new application and after that we will remove old applications. The applications too old and source code was lost. Is it possible to upload two empty applications that contains only link to download new application and some text that we have developed new app? Any other ideas to achieve that?
Replies
0
Boosts
0
Views
194
Activity
Dec ’15
Reply to Displaying alerts shows compiler warnings
There is no UICollectionViewCall in my code, any suggestion what it can be or how to resolve? You can use the above code to replicate the issue. Error #2, you were right. thanks
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
2 Location managers
Can an app have 2 different location managers,So for example a location based SDK and location in the app will they conflict with each other. The SDK will collect behavioural location data and the app is a navigation system.Thanks in advance
Replies
2
Boosts
0
Views
1k
Activity
Mar ’19
Reply to Alternative to subclassing CKDatabaseOperation
Two approaches:1) set up notifications for records being created and when the correct number of notifications come in, do your extra code.2) create a simple counter and increment the counter in the modifyRecordsCompletionBlock (actually, count down to zero) and when the counter hits the correct number execute the extra code.
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Function not returning values if in a separate file
There are two problems here.1. You have 2 variables called 'scalaRiduz'. They may look the same, but they are completely different. You could have written:var scalaRiduz1111:Double = 0 … func scalaTrafila (…) { var scalaRiduz2222:[Double] = [0, 1, 2] … }Why? Because a 'var' statement always declares a new variable. In your existing code, the 'scalaRiduz' inside the function hides the 'scalaRiduz' outside the function. But they're still different variables.2. This isn't your real code. In your main program, your 'scalaRiduz' isn't even array — it has type Double, not [Double].Here's what I think happened. You had code like this, in a single file:var scalaRiduz:[Double] = [] func scalaTrafila (…) { scalaRiduz:[Double] = [0, 1, 2] // <-- Note that there is NO var } print (scalaRiduz[0]) // prints 0Then you split it into 2 files:var scalaRiduz:[Double] = [0] scalaTrafila () print (scalaRiduz[0])func scalaTrafila () { scalaRiduz:[D
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’16
Magic Mouse 2
My apple magic mouse 2 stop scrolling all of sudden and all attempts to fix it seems not yielding and fruitful result.. I'm on MacOS Monterey.
Replies
1
Boosts
0
Views
443
Activity
Apr ’22
Two-Finger DragGesture()
Hi everyone!How can one configure the DragGesture() to fire on two finger input instead of just one. In UIKit this was easily possilbe by setting the minimumNumberOfTouches and maximumNumberOfTouches properties on UIPanGestureRecoginzerThanks in advance!Max
Replies
1
Boosts
0
Views
2k
Activity
Apr ’20
Sonama Beta 2
Sonoma Beta 2 isn't showing up in my updates its says up to date. Also when I try to turn the beta profile off it doesn't do anything it just stays in beta profile and checks for an update again. Has anyone else encountered this?
Replies
1
Boosts
0
Views
826
Activity
Jun ’23
Issue installing apps with watchOS 2 beta 2
I have trying to install apps after I have upgraded both my iPhone 6 and my Apple Watch.It is taking too long, so I left them syncing overnight. Some apps were installed successfully, some are stuck in installing status.I tried force reboot both devices, the installing is still stuck.alerts keeps poping up:Message out of order in ARFile against Pepper CompanionSync|1.0, attach all logsorMessage out of order in LocAFile against Pepper CompanionSync|1.0, attach all logsI have also checked the release note to find out if this is an known issue.the release notes read:File TransfersKnown IssueFile transfers fail from Watch to iPhone.Workaround: Uninstall and reinstall the Watch appHow do we uninstall the Watch app? Isn't it part of the iOS 9 system? Does that mean restore the phone using official iOS 9 beta 2 firmware?Please help us resolve this issue?
Replies
2
Boosts
0
Views
751
Activity
Jun ’15
How to use dataWithRequest in Swift 2?
let session = NSURLSession.sharedSession() if let url = NSURL(string: someURL) { let request = NSMutableURLRequest(URL: url) let task = session.dataTaskWithRequest(request) { (data, response, error) in if data != nil { print(NSString(data: data, encoding: NSUTF8StringEncoding)) } } task?.resume() }This one works fine on Swift 1.2 ( with println and task.resume() ) and I was able to get the data as I expected.But, when I run this code on Swift 2 (Xcode 7) I got rejected from the server. What is the correct way to implement this in Swift 2.0?
Replies
2
Boosts
0
Views
1.9k
Activity
Jun ’15
Programmatically determining if my user using Two Step, Two Factor or none
I want to help users enroll into Two Step / Two Factor authentication for iCloud in order to best secure their data.The tool I'm building is a privacy-helper tool that walks users through the nessary steps of achieving better security, and answers questions they may have along the way.To help with this workflow, I want to take my iCloud/ CloudKit app and determine what (if any) actions need to be taken. The only properties I need are:enum:isTwoStepisTwoFactornoneNo other personal information is needed other than that enum. Is this possible, or how can I request this to be a feature?
Replies
2
Boosts
0
Views
435
Activity
Apr ’17
Reply to UIAlertController UIAlertAction
the alert action is displayed briefly then it disappears before the user has time to enter anything into the 2 text fields and before the OK button is pressed.I embedded your code in an @IBAction method, and I couldn't have find a behavior as such.The problem may very probably hide somewhere in the lines you have not shown yet.At least two lines of your code: foundLatitude.text = stringLatitude foundLongitude.text = stringLongitudedo not work as expected. (Or I may be mistaking your expectation for these two lines.)They should be in the action handler of OK.Generally, you should not write any code after calling presentViewController:animated:completion: .
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’15
Will 2 environmentObject work?
Ive read posts where you can pass 2 .environmentObject() but what i noticed is that if i call object1.objectWillChange.send() , object2 also is affected is this normal? or supposedly only published properties of object1 only gets affected? discussion quwstion. thoughts?
Replies
1
Boosts
0
Views
467
Activity
Dec ’22