Search results for

“translate scheme”

6,658 results found

Post

Replies

Boosts

Views

Activity

Reply to Question on Database connectivity
YES for 1. SQLite3 library is included in iOS SDK, and you can find many articles on `SQLite3 in iOS`.But consider adopting CoreData for your purpose. It has a logical interface based on ER and comes with graphical ER scheme designer, and easily upgradable to work with iCloud. Especially, you can find many resources in this official developer site.NO for 2. As noted above, CoreData is not a general database connectivity.Nowadays, connecting client devices directly to database server is considered to be outdated, so it is very hard to find other alternatives if you intend it.As .NET MVC WebAPI is one of the easiest ways to provide APIs for iOS clients (though this is not a good place to discuss it), you may easily extend your .Net web application to provide RESTful APIs for iOS clients. And iOS apps can easily commucate with such APIs using its HTTP(S) supported communication functionalities.Networking Overview is a good starting point to learn about client side communications feature in iOS.(Though i
Sep ’15
Reply to OS X Localization
Important feature request for improving experince for users around the world:We now have many features for transalteing our apps, but please bring a API so that developers can translate the name of apps and not only the content inside the app. That will give users a more natural eperince, using thier devices and the apps.Here is an example:In the US the app is named FoodIn Denmark the app could be called Mad, which is Food in English, instead of the same name for all countries.
Sep ’15
ui testing - custom url scheme
Hi,I was wondering how we can test opening a custom url within an XCTestCase while performing UI testing. I am trying:// this custom url is registered within the application let customURL = NSURL(string: foo://localhost/doSomething let sharedApp = UIApplication.sharedApplication() let fileURL = // an NSURL file path UIPasteboard.generalPasteboard().setValue(fileURL, forPasteboardType: com.foo) XCTAssert(sharedApp.canOpenURL(customURL!), cannot open url) // this passes let status = sharedApp.openURL(customURL!) XCTAssert(status, did not open url) // this does NOT passcanOpenURL passes, but openURL does not succeed. Furthermore, the openURL delegate method in my application is never called. In the above snippet, I am also pasting a URL to the paste board because I am trying to open this test data file which was why I decided to try this with a custom URL.Any one have any ideas? Am I not approaching this correctly? I was trying to use an .xcappdata file but since that file loads in the testing unit instead of th
3
0
2.5k
Sep ’15
Reply to How can you increase frame rate with tvOS in the simulator?
Are you using OpenGL? I've noticed that OpenGL runs significantly faster in the Release Scheme than in Debug. You might try switching schemes and see if that makes a difference.Also, sometimes laptops have two GPUs: high power and low power (for battery rate). Make sure you're using the high power GPU if there are two.I am using a 2013 Macbook Pro Retina and it's pretty fast in the simulator in release builds.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Can someone help me to figure how to resolve the following runtime error?
I am trying to retrieve a JSON data from responseData.translatedText and my app crashed in valueForKeyPath. Alamofire.request(.GET, http:/ .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. }Using default language params2015-09-28 07:33:51.266 LoveInASnap[2106:192451] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSConcreteMutableData 0x7fe530ed8f90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key responseData.'*** First throw call stack:( 0 CoreFoundation 0x00000001072b6f65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001091a5deb objc_exception_throw + 48 2 CoreFoundation 0x00000001072b6ba9 -[NSException raise] + 9 3 Foundation 0x0000000107936e8c -[NSObject(NSKeyValueCoding) valueForUndefinedKey:]
4
0
1.1k
Sep ’15
Reply to Top Shelf dynamic content help
Early on it was because I mapped the data incorrectly from the json to my model to the TVContentItem objects. Once I figured that out it all worked.The property for topShelfItems needs to return an array of TVContentItems. Each item is composed of topShelfItems which are basically the elements you want to display for that section. var topShelfItems: [TVContentItem] { return sectionedTopShelfItems }It's a little cumbersome to set it all up in swift vs the TVJS (no longer supported) but it works. no bugs found so far.Just out of curiosity, what URL scheme are you using for the linkouts? I'm curious to see what other people are doing for the playUrl and DispalyUrls and how they deep link into the application.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
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 Top Shelf dynamic content help
Since the valid character set for a URL scheme is a superset of the valid characters for your app's bundle ID, you can use your app's bundle ID as the URL scheme. This will then avoid possibility of collisions with other apps.Then implement the new iOS 9 UIApplication delegate method in your delegate's class:- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options NS_AVAILABLE_IOS(9_0);and declare the URL in your app's Info.plist.The sections on custom URL handling also apply to tvOS: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Limited concurrent sounds AVAudioPlayer
I am currently developing an application using PhoneGap, it has some visuals and plays sounds. I use the PhoneGap Media Plugin for Audio playback, this uses the AVAudioPlayer on iOS.I do have very little experience on native iOS development.I'm creating a kind of book application with slides.I have one long MP3 which plays in the background. This contains the voice and is translated to several languages. This soundfile is pretty long, i encode it to MP3 to save space, and the device should be using Hardware decoding for this track.The other sounds are language independent. Each slide has some sounds that play independent of user interaction, and some play when the user taps a specific sprite on the screen. The sound effects i.e. the language independent content is in a adpcm ima4 wav format, this is done to make it easier for the CPU to decode the audio.On Android this all works well, and the player can decode and playback all my sounds without any problems.On iOS however, I can only play about 2 sou
1
0
3.2k
Sep ’15
Reply to Does iOS 9 prevent javascript from opening my app with a custom url scheme?
Hi Atiar,How do you redirect from your website to your app?I have the same problem with custom URL scheme, but it's still working when user initiates the action, e.g. clicks on the link with URL scheme. But currently it doesn't work if the link is inside an iframe.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Question on Database connectivity
YES for 1. SQLite3 library is included in iOS SDK, and you can find many articles on `SQLite3 in iOS`.But consider adopting CoreData for your purpose. It has a logical interface based on ER and comes with graphical ER scheme designer, and easily upgradable to work with iCloud. Especially, you can find many resources in this official developer site.NO for 2. As noted above, CoreData is not a general database connectivity.Nowadays, connecting client devices directly to database server is considered to be outdated, so it is very hard to find other alternatives if you intend it.As .NET MVC WebAPI is one of the easiest ways to provide APIs for iOS clients (though this is not a good place to discuss it), you may easily extend your .Net web application to provide RESTful APIs for iOS clients. And iOS apps can easily commucate with such APIs using its HTTP(S) supported communication functionalities.Networking Overview is a good starting point to learn about client side communications feature in iOS.(Though i
Replies
Boosts
Views
Activity
Sep ’15
Reply to OS X Localization
Important feature request for improving experince for users around the world:We now have many features for transalteing our apps, but please bring a API so that developers can translate the name of apps and not only the content inside the app. That will give users a more natural eperince, using thier devices and the apps.Here is an example:In the US the app is named FoodIn Denmark the app could be called Mad, which is Food in English, instead of the same name for all countries.
Replies
Boosts
Views
Activity
Sep ’15
ui testing - custom url scheme
Hi,I was wondering how we can test opening a custom url within an XCTestCase while performing UI testing. I am trying:// this custom url is registered within the application let customURL = NSURL(string: foo://localhost/doSomething let sharedApp = UIApplication.sharedApplication() let fileURL = // an NSURL file path UIPasteboard.generalPasteboard().setValue(fileURL, forPasteboardType: com.foo) XCTAssert(sharedApp.canOpenURL(customURL!), cannot open url) // this passes let status = sharedApp.openURL(customURL!) XCTAssert(status, did not open url) // this does NOT passcanOpenURL passes, but openURL does not succeed. Furthermore, the openURL delegate method in my application is never called. In the above snippet, I am also pasting a URL to the paste board because I am trying to open this test data file which was why I decided to try this with a custom URL.Any one have any ideas? Am I not approaching this correctly? I was trying to use an .xcappdata file but since that file loads in the testing unit instead of th
Replies
3
Boosts
0
Views
2.5k
Activity
Sep ’15
Reply to How can you increase frame rate with tvOS in the simulator?
Are you using OpenGL? I've noticed that OpenGL runs significantly faster in the Release Scheme than in Debug. You might try switching schemes and see if that makes a difference.Also, sometimes laptops have two GPUs: high power and low power (for battery rate). Make sure you're using the high power GPU if there are two.I am using a 2013 Macbook Pro Retina and it's pretty fast in the simulator in release builds.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Substituting Elements in Templates
> Images are not terribly informative for this and actually detract from the listing.Perhaps - I find images aid/simplify localization, reducing translations, etc. Then there is user focus, which I think the HIGs mention.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Xcode 7 crashes when clicking on Product > Edit Scheme
Xcode crashes when I want to open Scheme editor of C++ Console project. I tried reinstall, recreate project .. etc.I want to add option < test_inputs.txt to compiling command.I have Macbook Air 2015, OSX Yosemite.Thanks
Replies
2
Boosts
0
Views
337
Activity
Sep ’15
Reply to Apple TV Example Code in Obj-C?
Currently all of the tvOS code samples we have released are in Swift. But as bogo-sts suggested, the concepts are entirely translatable between the languages as you interact with the same APIs either way.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Can someone help me to figure how to resolve the following runtime error?
I am trying to retrieve a JSON data from responseData.translatedText and my app crashed in valueForKeyPath. Alamofire.request(.GET, http:/ .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. }Using default language params2015-09-28 07:33:51.266 LoveInASnap[2106:192451] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSConcreteMutableData 0x7fe530ed8f90> valueForUndefinedKey:]: this class is not key value coding-compliant for the key responseData.'*** First throw call stack:( 0 CoreFoundation 0x00000001072b6f65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001091a5deb objc_exception_throw + 48 2 CoreFoundation 0x00000001072b6ba9 -[NSException raise] + 9 3 Foundation 0x0000000107936e8c -[NSObject(NSKeyValueCoding) valueForUndefinedKey:]
Replies
4
Boosts
0
Views
1.1k
Activity
Sep ’15
openURL never called on Xcode 7 + iOS 9.0.1
openURL (include tel: scheme) is never called on Xcode 7 + iOS 9.0.1Can someone confirm?Thank you!
Replies
0
Boosts
0
Views
358
Activity
Sep ’15
Reply to Top Shelf dynamic content help
Early on it was because I mapped the data incorrectly from the json to my model to the TVContentItem objects. Once I figured that out it all worked.The property for topShelfItems needs to return an array of TVContentItems. Each item is composed of topShelfItems which are basically the elements you want to display for that section. var topShelfItems: [TVContentItem] { return sectionedTopShelfItems }It's a little cumbersome to set it all up in swift vs the TVJS (no longer supported) but it works. no bugs found so far.Just out of curiosity, what URL scheme are you using for the linkouts? I'm curious to see what other people are doing for the playUrl and DispalyUrls and how they deep link into the application.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
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 Top Shelf dynamic content help
Since the valid character set for a URL scheme is a superset of the valid characters for your app's bundle ID, you can use your app's bundle ID as the URL scheme. This will then avoid possibility of collisions with other apps.Then implement the new iOS 9 UIApplication delegate method in your delegate's class:- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options NS_AVAILABLE_IOS(9_0);and declare the URL in your app's Info.plist.The sections on custom URL handling also apply to tvOS: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Limited concurrent sounds AVAudioPlayer
I am currently developing an application using PhoneGap, it has some visuals and plays sounds. I use the PhoneGap Media Plugin for Audio playback, this uses the AVAudioPlayer on iOS.I do have very little experience on native iOS development.I'm creating a kind of book application with slides.I have one long MP3 which plays in the background. This contains the voice and is translated to several languages. This soundfile is pretty long, i encode it to MP3 to save space, and the device should be using Hardware decoding for this track.The other sounds are language independent. Each slide has some sounds that play independent of user interaction, and some play when the user taps a specific sprite on the screen. The sound effects i.e. the language independent content is in a adpcm ima4 wav format, this is done to make it easier for the CPU to decode the audio.On Android this all works well, and the player can decode and playback all my sounds without any problems.On iOS however, I can only play about 2 sou
Replies
1
Boosts
0
Views
3.2k
Activity
Sep ’15
Reply to Random AVAudioEngine crash
Well, that translates to AVAudioSessionErrorInsufficientPriority (AVAudioSession.h) but it shouldn't lead to a crash.Can you please file a bug for this crasher and attach a test case that reproduces the issue.thank you.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Sep ’15