Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

Passing data through custom url schemes
Hi All,I want to use URL schemes for communication between two applications. Want to do this both in our Android and iOS application.To pass some extra data between two applications using URL schemes. Extras with Implicit intent can be used in Android.https://developer.android.com/guide/components/intents-filters.html#BuildingDoes the same can be achieved in IOS URL schemes. ? As far as i can understand data can be only sent through the url query parameters.https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.htmlBest Regards,Saurav
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
736
Aug ’17
Reply to Reinstall translate
You can reinstall the Translate from the App Store. https://apps.apple.com/ca/app/translate/id1514844618 Another way to find it is to find any Apple app in the store, browse to the app page, and tap the developer name (“Apple”) to see other Apple apps available for download. You should then see Built-in Apps such as Translate, etc
Topic: App & System Services SubTopic: Hardware Tags:
Aug ’20
Reply to Can someone help me to figure how to resolve the following runtime error?
Hi, LCS.Thanks for the Help here. AlamoFire is a library I used in my code to make a HTTP GET. The codes I pasted above was truncated. Here's the complete text:let parameters = [q:textToTranslate, langpair:en|es] Alamofire.request(.GET, http://api.mymemory.translated.net/get, parameters:parameters) .response { (_, _, data, _) in let translatedText: String? = data?.valueForKeyPath(responseData.translatedText) as! String? if let translated :String = translatedText{ self.textView.text = translated } else { self.textView.text = No translation available. }I send a Get request to http://api.mymemory.translated.net/ to translate a string from English to Spanish. I am expecting a string (translation) from the data?.valueForKeyPath. The app crached in valueForKeyPath. What other method would you suggest me to use? Thanks in Advanced.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to After gesture finishes, my variables get reset to 0
UIPanGestureRecognizer's translationInView returns difference from the starting pan location. So when gesture recognizer's state is Began, it returns zero. Maybe you should set previouslyTranslated to translated value when state is Began:@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view) if sender.state == .Began { previouslyTranslated = translated } let diffTrans = (translated.y - previouslyTranslated.y) / 75 sum += diffTrans print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum) previouslyTranslated = translated }E: Now I realized I'm repeating what LCS said.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
1
0
377
Dec ’15
Reply to Translation API & Download Language Sheet
Progress Update: An if-statement inside .translationTask(configuration){} seems to be causing the issue:. The goal is using only 1 UI element, check if the language is downloaded. Only present the Download Sheet if needed; otherwise, perform the translation. Presently looking for work-arounds. Doesn't work (sheet auto-dismisses): .translationTask(configuration) { session in Task { @MainActor in do { if performFullTranslate { // prepare try await session.prepareTranslation() // send inputText to Translation API let response = try await session.translate(textObject.inputText) // swap the inputText for the translation textObject.inputText = response.targetText } else { // just prepare the DL sheet try await session.prepareTranslation() } } catch { print(Translate failed: (error)) } } } Works (presents sheet, but can't perform translation): .translationTask(configuration) { session in Task { @MainActor in do { // just prepare the DL sheet try await session.prepareTrans
Topic: App & System Services SubTopic: General Tags:
May ’25
URL Scheme Incorrect Format
I've been publishing an app on the App Store using the Adobe DPS service for the past few years. I've now just moved onto a new app development software and have started experiencing errors upon uploading a new app to update the previous one on the App Store.After checking everything is correct on the new app development software (Twixl Publisher), I receive this error when uploading my build via Application Loader:ERROR ITMS-90158: The following URL schemes found in your app are not in the correct format: [.co.uk.websitename.websitename]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.My Bundle ID in iTunes Connect is: .co.uk.websitename.websitename and has always worked perfectly before. Now it's causing problems and I can't figure out how to fix it so I can update the app with the version.Could anyone advise on the next steps I should take to resolve this
0
0
4.3k
Aug ’16
Scheme Setting Not Persisting For Associated Target
I have an Xcode 15.4 project with 4 targets (i.e. 2 UI and 2 CLI). Next, I'm looking to set a unique scheme for each target but it keeps changing to one of the previously set schemes. For example, I have the following four targets and I would like to have the associated: Target 1 - > Scheme 1 Target 2 -> Scheme 2 Target 3 -> Scheme 3 Target 4 -> Scheme 4 When the target is selected, shouldn't the corresponding scheme be updated in the Xcode toolbar? Or is there a setting that I'm missing to enable/disable within Xcode that would resolve this issue? Finally, I'm seeing similar behavior in Xcode 16 beta 1.
1
0
503
Jun ’24
Passing data through custom url schemes
Hi All,I want to use URL schemes for communication between two applications. Want to do this both in our Android and iOS application.To pass some extra data between two applications using URL schemes. Extras with Implicit intent can be used in Android.https://developer.android.com/guide/components/intents-filters.html#BuildingDoes the same can be achieved in IOS URL schemes. ? As far as i can understand data can be only sent through the url query parameters.https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.htmlBest Regards,Saurav
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
736
Activity
Aug ’17
Reply to Reinstall translate
You can reinstall the Translate from the App Store. https://apps.apple.com/ca/app/translate/id1514844618 Another way to find it is to find any Apple app in the store, browse to the app page, and tap the developer name (“Apple”) to see other Apple apps available for download. You should then see Built-in Apps such as Translate, etc
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Aug ’20
Emoji as Custom URL Scheme
Hi fellow Saplings,I'm wondering if we can use Emoji as the header for custom URL schemes in iOS apps.For instance : U+1F4A9://
Replies
1
Boosts
0
Views
965
Activity
Sep ’17
Reply to Can someone help me to figure how to resolve the following runtime error?
Hi, LCS.Thanks for the Help here. AlamoFire is a library I used in my code to make a HTTP GET. The codes I pasted above was truncated. Here's the complete text:let parameters = [q:textToTranslate, langpair:en|es] Alamofire.request(.GET, http://api.mymemory.translated.net/get, parameters:parameters) .response { (_, _, data, _) in let translatedText: String? = data?.valueForKeyPath(responseData.translatedText) as! String? if let translated :String = translatedText{ self.textView.text = translated } else { self.textView.text = No translation available. }I send a Get request to http://api.mymemory.translated.net/ to translate a string from English to Spanish. I am expecting a string (translation) from the data?.valueForKeyPath. The app crached in valueForKeyPath. What other method would you suggest me to use? Thanks in Advanced.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to After gesture finishes, my variables get reset to 0
UIPanGestureRecognizer's translationInView returns difference from the starting pan location. So when gesture recognizer's state is Began, it returns zero. Maybe you should set previouslyTranslated to translated value when state is Began:@IBAction func OnRightSwipeGesture(sender: UIPanGestureRecognizer) { let translated = sender.translationInView(self.view) if sender.state == .Began { previouslyTranslated = translated } let diffTrans = (translated.y - previouslyTranslated.y) / 75 sum += diffTrans print(sum); colorWheel.transform = CGAffineTransformMakeRotation(sum) previouslyTranslated = translated }E: Now I realized I'm repeating what LCS said.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
What is the URL Scheme for Apple Tips app?
From another mobile app or Safari, I can launch Maps using the url scheme maps://What is the URL scheme for the Apple Tips app?
Replies
1
Boosts
0
Views
395
Activity
Aug ’15
Whats is the openURL scheme for Notes.app in iOS
Can I open Notes.app using openURL scheme ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
464
Activity
Aug ’16
Custom URL schemes and deep linking
As universal links require iOS 9 and are not compatible with iOS 8, is it possible to cater for custom URL schemes and universal links in the same app so that if an app is installed on an iPhone running iOS 8 and on an iPhone running iOS 9 the URL scheme will forward the user to the app? If not are there any other solutions to this?
Replies
0
Boosts
0
Views
428
Activity
Jan ’16
airport utility ios url scheme
While in Mac the apconfig:// apupdate:// schemes work fine and the airport opens automatically, in iOS I can't find any scheme that opens the airport utility
Replies
1
Boosts
0
Views
329
Activity
Aug ’24
xfail in XCTest or scheme?
I am wondering if Xcode has a capability to describe that certain tests are expected to fail.I searched the web with keyword mixes like xcode, xfail, expect to fail, xctest, test scheme and so on. None got what I want and I came up here, the dev forum.I am writing some test utility for my classes. So, the goal is to fail when the test utility detects anything wrong.The test codes for the test utility are written purposely to fail. And I would like to take those failures as successes of the test.I may add up some more codes in the test utility to flip the assert expressions not to fail for xfail purpose. However, it may introduce unexpected bugs and I don't want to take the additional risk (and unnecessary risk if xfail is supported in xcode)I appreciate any feedbacks. Thanks!dpdo
Replies
1
Boosts
0
Views
377
Activity
Dec ’15
Reply to Translation API & Download Language Sheet
Progress Update: An if-statement inside .translationTask(configuration){} seems to be causing the issue:. The goal is using only 1 UI element, check if the language is downloaded. Only present the Download Sheet if needed; otherwise, perform the translation. Presently looking for work-arounds. Doesn't work (sheet auto-dismisses): .translationTask(configuration) { session in Task { @MainActor in do { if performFullTranslate { // prepare try await session.prepareTranslation() // send inputText to Translation API let response = try await session.translate(textObject.inputText) // swap the inputText for the translation textObject.inputText = response.targetText } else { // just prepare the DL sheet try await session.prepareTranslation() } } catch { print(Translate failed: (error)) } } } Works (presents sheet, but can't perform translation): .translationTask(configuration) { session in Task { @MainActor in do { // just prepare the DL sheet try await session.prepareTrans
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to I encountered some problems while developing the default translation app.
I have followed the steps in the documentation to create a default translation app extension, but I am unable to launch my project. https://developer.apple.com/documentation/translationuiprovider/preparing-your-app-to-be-the-default-translation-app
Replies
Boosts
Views
Activity
Apr ’25
URL Scheme Incorrect Format
I've been publishing an app on the App Store using the Adobe DPS service for the past few years. I've now just moved onto a new app development software and have started experiencing errors upon uploading a new app to update the previous one on the App Store.After checking everything is correct on the new app development software (Twixl Publisher), I receive this error when uploading my build via Application Loader:ERROR ITMS-90158: The following URL schemes found in your app are not in the correct format: [.co.uk.websitename.websitename]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail.My Bundle ID in iTunes Connect is: .co.uk.websitename.websitename and has always worked perfectly before. Now it's causing problems and I can't figure out how to fix it so I can update the app with the version.Could anyone advise on the next steps I should take to resolve this
Replies
0
Boosts
0
Views
4.3k
Activity
Aug ’16
Reply to Localization of 3D Touch shortcuts?
For static shortcuts you put the translation key in the Info.plist where you define your shortcuts. E. g. UIApplicationShortcutItemTitle: translationKeyYou add the translations then in the localized InfoPlist.strings files. translationKey = My localized title;
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Scheme Setting Not Persisting For Associated Target
I have an Xcode 15.4 project with 4 targets (i.e. 2 UI and 2 CLI). Next, I'm looking to set a unique scheme for each target but it keeps changing to one of the previously set schemes. For example, I have the following four targets and I would like to have the associated: Target 1 - > Scheme 1 Target 2 -> Scheme 2 Target 3 -> Scheme 3 Target 4 -> Scheme 4 When the target is selected, shouldn't the corresponding scheme be updated in the Xcode toolbar? Or is there a setting that I'm missing to enable/disable within Xcode that would resolve this issue? Finally, I'm seeing similar behavior in Xcode 16 beta 1.
Replies
1
Boosts
0
Views
503
Activity
Jun ’24