1
我有一個在頁面上顯示UICollectionView的應用程序,這在iOS7中正常工作,但在iOS8中使用指向UICollectionViewAccessibility和UIApplicationAccessibility的tracelog崩潰,即使我沒有完全接觸可訪問性的代碼。在iOS8中使用UICollectionview崩潰Bug,與UIApplicationAccessibility相關
我已經設法隔離問題,並建立一個小應用程序,在這裏再現崩潰。
http://github.com/beno/ios8bug
我覺得很難理解用這種明顯的錯誤會出貨的代碼,但它看起來像它一樣。我已經向蘋果提交了一個錯誤,但目前爲止沒有迴應。任何有關更多信息或解決方法的幫助將不勝感激。
樣品跟蹤:
Thread 1Queue : com.apple.main-thread (serial)
#0 0x0343d385 in CFHash()
#1 0x0109c264 in NSKeyValueAccessorHash()
#2 0x03436373 in CFBasicHashFindBucket()
#3 0x0346294b in CFSetGetValue()
#4 0x0109f316 in -[NSObject(NSKeyValueCoding) valueForKey:]()
#5 0x10ba246e in -[NSObject(UIAccessibilitySafeCategory) safeValueForKey:]()
#6 0x10d1f359 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#7 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#8 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#9 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#10 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#11 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#12 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#13 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#14 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#15 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
#16 0x10d1f376 in -[UICollectionViewAccessibility _accessibilityDescendantElementAtIndexPathIsValid:]()
....