Search results for

show when run

112,755 results found

Post

Replies

Boosts

Views

Activity

Strange bug - call list duplicated from other device
It's very strange, I have one device (iphone6) with iOS 8.4 (b3 and now b4), which shares the AppleID with another device (iPhone 5s - iOS 8.3). Both are using the same iCloud settings and iTunes library/login for iTunes match. Both back up to the iCloud backup but as different devices. Suddenly (soon after switching the iPhone 6 to 8.4b3, I *think*) the telephone call list of my iPhone 5s got duplicated on the iPhone 6 but not the other way round. After I had phoned my 5s the other day to find it my 6 showed missed call from [my iphone 6] in the night. This is puzzling. Anyone else encounter this?
0
0
250
Jun ’15
Reply to Can you create a Set of a single protocol?
In a simple version, any two objects which are not the same class could just return false and if they were the same class could do something like the current Equatable method.But sometimes two values that are semantically equal are not the same type:let myInt = 2 let myDouble = 2.0 myInt == myDoubleMaybe you could special-case numeric types, but sooner or later somebody would make the same mistake with different types. It might be 2 and 2, or it might be a String and an NSAttributedString, or it might be a Product and a ProductID. But whatever it was, somebody would write some code they expected to work, and then they'd be surprised when it didn't.Swift is designed to prevent these kinds of problems. So Swift's designers recognized that, actually, there's something a little funny about comparing two values of different types. Iftwo values can never be equal, why are you testing whether they're equal or not? That doesn't really smell right; you're probably doing something wrong. Let's just make the compiler fl
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Captive Network websheet failing when proxy enabled
Hi there,I'm seeing an assertion failure in the iPhone Captive Network WebSheet when a Wi-Fi network is set up with an automatic Proxy PAC URL.The result is that the web sheet doesn't even make a request to the identified captive network redirect page (we can see this from the server side) and shows a blank screen to the user, followed eventually by an alert saying Error Opening Page / Hotspot login could not open the page because the server stopped responding.We also see no request to the Proxy PAC URL during this process.I've enclosed the relevant logs below and also raised this as rdar://21356077 (and https://openradar.appspot.com/21356077 )Anyone have any clues?Thanks!AdamThe assertion failure appears in the iPhone logs as follows (assertion failure on line #12)Jun 12 11:58:49 iPhone configd[32] <Notice>: Captive: [CNInfoNetworkActive:1744] en0: SSID 'tc-te-24' not making interface primary (no cache entry) Jun 12 11:58:49 iPhone configd[32] <Notice>: Captive: CNPluginHandler en0: Eval
1
0
1.7k
Jun ’15
Reply to for case enum syntax
Yes, but it doesn't really tell anything explicitly about this particular use case (iterating over a collection of enums with associated values, and only over the ones that matches a particular member value, getting a copy of the associated value from each of them).The closest thing on that page (and in the iBook) is this example:let arrayOfOptionalInts: [Int?] = [nil, 2, 3, nil, 5] // Match only non-nil values for case let number? in arrayOfOptionalInts { print(Found a (number)) } // Found a 2 // Found a 3 // Found a 5Yes, number? is short for .Some(number), but using the special ?-form also hides the more general form of the pattern. The example is focusing on the special case of Optionals which is fine, but it also obscures the general pattern. And I don't think most people will quckly deduce this from that example or by analyzing the grammar.Perhaps there should be some additional example using the pattern in question, ie:for case let .Foo(value) in enumValues { ...Especially if the syntax in the WWDC 201
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to iOS 9 Beta battery life
Now I've been able to run my iPhone 6 128GB with iOS 9 beta 1 for 40 minutes straight in standby mode (just viewing some e-mails from time to time, mobile data enabled, all background stuff disabled with not even 1% loss on the battery. Battery saving mode is also disabled. Don't really know what I did.. All I did was viewing the log files through the device viewer in Xcode. Disconnected the cable after a while and ended up where I'm now.. Before viewing the logs in Xcode I rebooted the phone also. But I did not change any settings in the phone from where it was before so I don't really understand what's going onSoon it's actually 50 minutes without any battery loss.. still at the 97% as it was when I disconnected it from my Mac. Seemingly the background activity going on before on the home screen also suddenly stopped.I'm going to spend my weekend looking into this matter a bit deeper, just for the pure fun of it
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
CMMotionManager nil error
error: unexpectedly found nil while unwrapping an Optional valuehiyas I for the life of me can not see whats wrong with the following codexim a noob to swift so thats probbably why 🙂I been stuck in this for so ling and if you can spot the propbem it be a real saver for me.it seems to work or at least show on the xcode viewer but errors on the real phone.many many thanksBrianimport UIKitimport CoreMotionclass ViewController: UIViewController { let motionManager = CMMotionManager() override func viewDidLoad() { if motionManager.gyroAvailable { motionManager.deviceMotionUpdateInterval = 0.2; motionManager.gyroUpdateInterval = 0.2 motionManager.startDeviceMotionUpdates() motionManager.startGyroUpdatesToQueue(NSOperationQueue.currentQueue()) { [weak self] (gyroData: CMGyroData!, error: NSError!) in if error != nil { println((error)) } self!.outputRotationData(gyroData.rotationRate) } } else { / } super.viewDidLoad() } func outputRotationData(rotation:CMRotationRate) { var attitude = CMAttitude() var moti
0
0
531
Jun ’15
Location tracking in background
Hi,are there any new requirements for background location tracking in iOS9?Got problems with my new walking app on iOS9 devices:Tracking starts normal in foreground, but if I switch the app to the background the location updates and also the time tracker stops until the app is switched back to foreground. This happens only on my iOS9 test device. Same project is running fine in the background on iOS8 devices and also running fine on the iOS9 simulator.Also the project is running fine when I am compiling the project with xcode 6.3.2 against iOS8.As always when I got such issues, I have created a simple test app which is logging time and distance in the log, this test app reproduces the issue.The test app can be downloaded as a zip at this url: www.ihanwel.com/export/test.zipAny idea? Maybe someone has some time to compile my test app and check it on the own device. Thanks.Cheers,Hanno
2
0
2k
Jun ’15
Reply to Battery overspending IOS9
Well, you probably missed the keynote. One new feature is a way better energy management. Thats great news since they bring the lessons learned from the watch over to iOS.Ask your self as dev - is implementing a feature like this done with just typing code and run it once in the simulator? Nope, it needs fieldtesting.Welcome to the beta.As for our testequipment it seems to apply only to devices that are known to benefit the most from this feature. iPhones 6 as the only devices eating their battery. Thats cool, because deep discharge once in a while helps the battery to live longer.// running gagGlad you didn't install the beta on a device you use everyday, aren't you. 🙂// jedes Jahr das gleiche 😀
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15