Search results for

We are unable to process your request

69,585 results found

Post

Replies

Boosts

Views

Activity

Get fields from NSArray with CoreData content
i have a table in coredata with some fields, i can get the count of records but i can´t get the values from each field, now i have this code: var request:NSFetchRequest = NSFetchRequest(entityName: Radar) //my table in coredata let appDelegate:AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate) let context:NSManagedObjectContext = appDelegate.managedObjectContext! request.returnsObjectsAsFaults = false var results:NSArray = context.executeFetchRequest(request, error: nil)! println(results.count) //this is the count that i can doi need some more,Radar have this fields: Descr,Latit,Longi need get this fields to create a annotationsome like this: results.Descr 😝thks in advance
1
0
325
Jun ’15
rdar://21364764 reproducible Swift crash during compilation
I had some code that compiled and its test passed under Xcode 6.3.2.I opened it with Xcode7b1 and let it convert it. The code still had a number of errors so I tried fixing them and got to a point where Swift crashes during compilation and I cannot proceed any farther.Steps to Reproduce:1. git clone https://github.com/dave256/DDRCoreDataKit2. git checkout xcode7b1radar3. open the project and build itExpected Results:Swift compiler should not crashActual Results:Swift compiler crashesIf you want to see what happens during the conversion process, you can do:git clone https://github.com/dave256/DDRCoreDataKitgit checkout swift1.2and then open it with Xcode 7.
0
0
193
Jun ’15
How to open iOS Captive Portal Splash Screen?
I wrote a DNS server in PHP, and I am running it on a Raspberry Pi (terminal) to use it as a Captive Portal.I am fully capable of redirecting all DNS requests.I connect the Raspberry Pi to my router (Ethernet cable) and assign the IP address of the Raspberry Pi to the primary DNS of my router.I am using a MySQL database to save authenticated devices in order to be able to know who can navigate and who can not.Everything is working fine.My problem: when a device connects to my Wi-Fi hotspot I would like the Captive Portal Splash Screen to automatically popup in order to allow the user to authenticate.On Android it is working: I only had to redirect requests for clients3.google.com to the Raspberry Pi IP address and create the generate_204 file in my web server (Apache) root folder (/var/www).On iOS it is NOT working: the iOS Captive Portal Splash Screen is not opening when the device connect to the Wi-Fi hotspot, and I can not find enough documentation on the web in order to solve it.How do I open the
2
0
3.7k
Jun ’15
Reply to Testing app versioning
I think the ad-hoc installation process most closely mimics the App Store distribution. So I would start by installing an ad-hoc build of your old version, then installing an ad-hoc build of the new version over top.The app crashing on an update is a sign that your application data, which is preserved from the old version, was in a format that your new code didn't handle properly. Apps do not normally crash when updated unless there are bugs.
Jun ’15
Reply to Troubleshooting the launch of local user XPC Launch Agent
wjens wrote:> I thought the XPC Service template within xcode was only for XPC Services hosted within a parent application - produces .xpc files. I'm pretty sure those don't work as standalone XPC services like you describe above.Thanks for your input.I thought that this might be the case as well. In a variant of my prior test code, not shown here, I tried it with an Launch Agent based on the .app AppKit template but this didn't really change the broken connection behaviour. Which leads me to believe it's some kind of configuration issue.Although, I haven't tried the code of the Launch Agent, as posted above, as an Mac App created with the .app AppKit Xcode template but with the GUI stuff stripped out or with the Command Line Tool template.I forgot to mention in my previous post that debugging print statements in the Launch Agent's main.m, like the fprintf() calls in the example code or NSLog() or asl_log() calls in my original test code, do not appear anywhere in the command line output or in the System C
Jun ’15
Notes from What's New in Notifications
Two part talkiOS Notifications- Silent notifications- User Notifications- Actions- Text Input <- NewApple Push Notification ServiceiOS NotificationsSilent notifications- Not user-facing, they're between the app and the server.- Enabled by default- Background App Refresh - User can turn off, don't rely on them.- Best effort at sending to deviceUser Notifications- Notify the user of something - Appear in the banner, lock screen, pop-up, etc- Require user permission- Can be disabledRemote user notificationsLocal user notificationsRemote user notifications- Sends from the server to your device over the internetLocal notifications- Scheduled by the app directly on the device, internet and server not requiredCan be scheduled by:TimeLocation (geofencing)Interactive NotificationsAllow user notifications to be interactive- The user can choose an option from the notification without launching the app or otherwise interrupting what the user was doing.Applies to both iOS and watchOSUser Notifications text input in iOS
1
0
2.2k
Jun ’15
Swift 2 OpenCL "cannot invoke" type problem
Hi Everyone,I just tried to post this, but the cancel button is right below the tags control, and doesn't have a confirmation action, so I think I lost it. If this is a double post due to some kind of moderation delay apologies in advance...Anyway, on to the issue at hand. I have some Swift 1.2 code for OpenCL that I'm working on porting to Swift 2, and I'm having some trouble with the type system. The way that OpenCL is bridged into swift relies heavily on typedefs, and there are a TON!! of them. I had to perform some gymnastics in 1.2 to convince the type system that my argument is just the right kind of UInt32 (or is it cl_device_info?), but now those aren't enough in 2.A short sample of (some of!) the suspect code follows. There are about 50 instances of this kind of error in the project: private class func deviceInfoString(deviceID: cl_device_id, param paramIn: Int32) throws -> String { let param = cl_device_info(paramIn) var returnBufferSize: Int = 0 var retval: cl_int = CL_SUCCESS retval = clGetDevi
4
0
450
Jun ’15
Best place to handle user tapping on a remote push notification
I was going through some Apple Docs, and read the following: Let’s review the possible scenarios that can arise when the system delivers a local notification or a remote notification for an app.The user taps the default button in the alert or taps (or clicks) the app icon. If the default action button is tapped (on a device running iOS), the system launches the app and the app calls its delegate’s application:didFinishLaunchingWithOptions: method, passing in the notification payload (for remote notifications) or the local-notification object (for local notifications). Although application:didFinishLaunchingWithOptions: isn’t the best place to handle the notification, getting the payload at this point gives you the opportunity to start the update process before your handler method is called. If the notification is remote, the system also calls application:didReceiveRemoteNotification:fetchCompletionHandler:. It looks like the above document is partially true. If the app is in the background (multitas
2
0
2.2k
Jun ’15
Watch OS 2 beta unresponsive (lag) every few seconds
After upgrading to watch OS 2.0 (13S5254w) the watch's UI has a severe lag:Unresponsive to input (screen, motion, or buttons) for 1-5 seconds, thenSmooth responsiveness for 1-4 seconds, thenRepeat 1.It's been installed for a few hours and doesn't appear to be trying to install any apps (installations could contribute to lags). It only has the operating system's native apps on it. I've experienced the lag since the upgrade completed. When upgrading I chose the option to make it a new device rather than installing from a backup. I upgraded from 1.0. I did have to reset it with the side buttons at about 75% complete during the last circle of the upgrade process since it hung there for over an hour. It came up and everything else seems to be working fine.The lag makes it fairly unusable at the moment. Any ideas?
2
0
506
Jun ’15
Reply to ErrorType
Honestly, it wouldn't be throws so much as catches:func doAsync(callback : String catches -> Void) { if (success) { callback(hooray!) } else { callback(throw MyError.Failed) } }But I suspect that there are enough weird cases in the frameworks (for instance, CloudKit's modifyRecordsCompletionBlock can take both a bunch of successfully-processed objects and an error indicating objects that failed) that it'd be difficult to develop a pattern like this.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
ITMS-90072 Error
Hi, I got an error ITMS-90072 : The IPA is invalid. It does not included a Payload directory during the submission process via both the XCode Organizer and Application Loader attempt. Can someone assist by sharing your experience so that we can submit our application for distribution. Your help is greatly appreciated. Thank you.Best RegardsSam
1
0
500
Jun ’15
Reply to Cloudkit concurrent connection
This year's What's New in CloudKit talk had some information about how limits are calculated and enforced.If I remember correctly, CloudKit handles spikes in requests-per-second by responding with an error instructing your application to retry the request after a certain amount of time (see CKErrorRequestRateLimited and CKErrorRetryAfterKey).
Jun ’15