ios8

Why does using headerReferenceSize with self-sizing cells in a collection view cause a crash in iOS 8?

╄→гoц情女王★ 提交于 2020-01-01 08:02:09
问题 I managed to figure out the approach for self-sizing collection view cells under iOS 8. I want to do this as a part of a accessory view. I get a crash ... the interesting part of the stacktrace is as follows: ** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil' *** First throw call stack: ( 0 CoreFoundation __exceptionPreprocess + 165 1 libobjc.A.dylib objc_exception_throw + 45 2 CoreFoundation -[_

Today Extension Not Positioned Correctly

梦想的初衷 提交于 2020-01-01 07:20:37
问题 I'm developing a Bitcoin Today Extension and for some reason, the control has an offset. Here's what it currently looks like: http://i.imgur.com/KxeXePS.png As you can see, the button is barely on the screen, and the label isn't on the left side. My storyboard looks like: http://i.imgur.com/6vtfNGJ.png I've tried settings multiple kinds of constraints, and none of them seem to fix the issue. I'm not sure what other information I can add, but if you have any questions about the project, I can

VFR-Reader Crashing in iOS8

筅森魡賤 提交于 2020-01-01 06:27:17
问题 I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report Thank you 回答1: In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory. From the iOS 8 Release Notes: The file system layout of app containers has changed on disk. Rather

VFR-Reader Crashing in iOS8

二次信任 提交于 2020-01-01 06:27:15
问题 I tested an app that is currently working with the VFR-Reader-Core on iOS8 and I get a complete crash when I try to open a PDF from it. Am I the only one with this problem? any idea of where I can search to correct this? Here is the crash report Thank you 回答1: In iOS 8, Te file system layout of app containers has changed. Applications and their content are no longer stored in one root directory. From the iOS 8 Release Notes: The file system layout of app containers has changed on disk. Rather

iOS 8 GM does not update constraints on collection views

冷暖自知 提交于 2020-01-01 04:13:09
问题 In Xcode 6 Beta 7 and all versions before it, I had a collection view that would update its constraints on its cells when an iPad would rotate between landscape and portrait. Now, it doesn't update at all, and in fact it looks exactly like how I leave it in the XIB, which implies to me that it's not updating at all. It appears that the reusable views I'm using are updating correctly, but the cells certainly are not. Has anyone else run into this issue yet? Anyone have any ideas for how to get

HealthKit HKAuthorizationStatus for reading data

五迷三道 提交于 2020-01-01 04:08:05
问题 I'm using HealthKit to read certain types of information. I'm specifically not asking for write functionality. The problem comes in when trying to detect if the user has allowed a certain Health type to be read. I believe the intended way to do this is using an HKHealthStore's authorizationStatusForType method, but this is only returned denied or unknown. It is only returning authorized for write types. Has anyone found a way to use this method for reading or another work around?

Scan for MFI products over Wi Fi

半世苍凉 提交于 2020-01-01 03:25:07
问题 In iOS 8, Apple allows us to connect to a device via Wifi direct and share wifi network credentials with it. We can do it in wifi settings page but also in an app. I'm trying to launch a scan to find wifi MFI devices. I can see those in the wifi settings but not in app. Here is how I do this: EAWiFiUnconfiguredAccessoryBrowser *_wifiBrowser = [[EAWiFiUnconfiguredAccessoryBrowser alloc] initWithDelegate:self queue:nil]; [_wifiBrowser startSearchingForUnconfiguredAccessoriesMatchingPredicate

Trying to use KeychainItemWrapper by Apple “translated” to Swift

本秂侑毒 提交于 2020-01-01 03:13:08
问题 Sigh, I have been working on this the whole afternoon... here is my nightmare: I am trying to use the KeychainItemWrapper made by Apple. But I "translated" its Objective-C codes to Swift: import Foundation import Security class MyKeychainItemWrapper: NSObject { var keychainItemData: NSMutableDictionary? var genericPasswordQuery: NSMutableDictionary = NSMutableDictionary() init(identifier: String, accessGroup: String?) { super.init() // Begin Keychain search setup. The genericPasswordQuery

Today Extension has a title, but no body iOS 8

こ雲淡風輕ζ 提交于 2020-01-01 01:53:13
问题 I am trying out the new TodayExtensions in iOS 8 and I followed the steps to create a Today Extension as described in the WWDC video Creating Extensions for iOS and OS X, Part 1 . I added a colored UIView to the ViewController in the provided storyboard. I get a title in my "Today" Notification center, but I get no body with my colored view. It looks like this (I made two): Is anyone else getting this? I set breakpoints in all of my ViewControllers methods and nothing gets called. I changed

Where to get frame size of custom UIView in its subclass

烈酒焚心 提交于 2019-12-31 20:08:03
问题 When does the correct frame size of the UIView is calculated when I add my custom UIView by using storyboard? I can't get correct frame size in UIView's init(frame: CGRect) or init(coder aDecoder: NSCoder) or awakeFromNib() . I get the correct size in override func layoutSubviews() but this time the view is not added to the view controller's view. Edit: I want to do this in the UIView subclass because I add a CAGradientLayer layer (which has same size with my view) to my custom UIView . There