Search results for

file uri scheme

78,567 results found

Post

Replies

Boosts

Views

Activity

Reply to Can't fetch JSON due to NSInvalidArgumentException
OK, thanks to your hint with the exception breakpoint I was able to read the error variable: Surprisingly it's nil. This caused me getting entirely confused. 😕 Anyway, in the console there is the NSException error printedTerminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'as well as a bunch of throw call stack annotations. I have already browsed them, but they didn't gimme a hint about the occured error. Clueless as I am, I assume that your red herring theory proves to be true. Possibly I forgot to set some delegates ... Would be absolutely cool if you have a look at the whole method. Maybe everything gets clearer, then.- (void)downloadItemsWithQuery:(NSString *)searchString { // Create the customized URL NSString *theQuery = [searchString uppercaseString]; NSString *encodedString = [theQuery stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet characterSetWithCharactersInString:@!*'();:@&=+$,/?%#[]]]; NSURL *theURL = [NSURL URLWithString:
Jun ’15
Trouble with Collision Detection
I am making a game right now in SpriteKit, and the purpose of the game is that there is a gunner who shoots bullets, and the goal is to shoot the balls. Right now, I have added basic collision detection so that when a bullet hits a ball, the ball will be moved to the right from the impact of the bullet. I want to make it so when the bullet touches the ball, the ball explodes. I know that I will need a .atlas file for the animation of the bullet, but how can I make it so the game recognizes when the bullet touches the ball, then sets off the animation.
4
0
491
Jun ’15
Error about minimum deployment target
I can't run my playground anymore in Xcode7. I have a workspace, with a few projects (apps, frameworks). The playground imports a few of the frameworks. This was working in Xcode6, but now I get errors like the following:Playground execution failed: Untitled Page.xcplaygroundpage:3:8: error: module file's minimum deployment target is ios8.3 v8.3: [DerivedData]/[MyWorkspace...]/Build/Products/Debug-iphonesimulator/MyFramework.framework/Modules/MyFramework.swiftmodule/x86_64.swiftmodule import MyFrameworkI don't see any way to control the minimum deployment target on the playground, to make it match. Any ideas?Rob
6
0
15k
Jun ’15
File IO in Swift 2
Where can I find documentation on doing file IO in Swift 2? I have checked the language reference, but I don't see anything there. Right now I just want to read a file into a string, but I am interested in other file IO as well.Thanks,James
1
0
1.7k
Jun ’15
Reply to Troubleshooting the launch of local user XPC Launch Agent
I think your problem is mostly in your launchd plist file.In my working Launch Agent I have no entitlements. There are no entitlements related to the Launch Agent target or the command line tool target. So just to get something working I'd recommend removing entitlements from the equation right now and adding them back in afterwards.The path to the program in the Program arguments array is to the executable within the LaunchAgent bundle, not just to the Launch Agent itself. I'm pretty certain this is needed.I do not use ~ but fully resolved paths to the Launch Agent as well. My installer updates the launchd plist file to point to the location of the Launch Agent at install time. I think it is possible that the ~ will not be resolved. I can't find documentation either way but in the first instance if I was you I would hard code in the full path until you have it working. Once working you can undo and check. Actually I've just gone and modified my launchd plist file with a ~ and the LaunchAgen
Jun ’15
Reply to File IO in Swift 2
There is no file API native to Swift, but you can use the Cocoa APIs:if let data = NSData(contentsOfFile: /etc/resolv.conf) { let string = NSString(data: data, encoding: NSUTF8StringEncoding) }or you can use the Unix APIs (open, read, ...), but then you have to do manual memory management.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to iOS 9 Beta battery life
Apple asked me for my power log files so I've sent them to Apple now. So hopefully they will find a way to fix this soon enough 🙂 And was quite impressed of that they actually got back to me and asked for the log files. So they are of course most definitely taking it serious. Just glad to be able to help out 🙂
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
iOS 9 beta: setting it up as a daily driver
OK, so you read the part about it's only to be installed for development purposes and figured that was the dead hand of Steve reaching up to keep you from having fun right?Unfortunately: it wasn't.Right now they aren't kidding and you need to understand something to use iOS 9 beta as your daily driver: a development device has the beta installed and a development app. It doesn't have 1024 apps and 100GB of it's 128GB of storage filled up with movies, photos etc... nor is it plugged into every social network and email account known toThe Cloud. And it's chock full of bugs that developers don't care about because they're focused on making siri work with their app.Got it?So if you still want to make a daily driver out of iOS 9 beta, because you know, you are wink-wink-nudge-nudge testing the bits to help find bugs for Apple instead of fixing up your own code....For the first day you will need to treat it like a WIndows OS Desktop.Keep it plugged into power. (Desktop)Keep rebooting it. (Windows OS)Ideally you sho
0
0
671
Jun ’15
Reply to Won't let me sign out of iCloud from System Preferences
Assuming you've deleted the iCloud account files and can now use the iCloud pref pane normally, then you should be able to control many of the iCloud services from there.You may also need to manually sign out of Messages and Facetime (options that are accessed through the main menu items for those apps)However, I didn't need to sign out and back in again after iCloud got itself stuck because I changed the password. Everything started working properly again when it recreated the account file in the location mentioned above.Also many people (10 or so) had similar issues and reported that the above fix solved it for them.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Downgrade to Yosemite.
Best way is to download Yosemite installer and use the instructions to build a USB bootable installer.https://support.apple.com/en-gb/HT201372If you have a time-machine backup, then you should be able to manually mount the image, and restore the individual files from there.Keep in mind that certain files will be upgraded to newer versions, so may not restore.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Write LaTeX formulas in app
Hi,I'm a newbie in iOS app development and I was looking for a way to display LaTeX text in my app.I'd like to load a text from a .tex file and show it in a view; this text contains math formulas (e.g., equations of any kind) and math symbols (integrals, ...).Any idea of a good starting point to get it?Thanks.
4
0
5.0k
Jun ’15