UIReferenceLibraryViewController reports containing no definitions in iOS 6
| Originator: | jeff | ||
| Number: | rdar://12041565 | Date Originated: | 06-Aug-2012 03:00 PM |
| Status: | Closed | Resolved: | 12-Sep-2012 |
| Product: | iPad SDK | Product Version: | 6.0 (10A5376e) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
In iOS 6, -[UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:] returns NO for all inputs. This prevents any use of the UIReferenceLibraryViewController.
A sample project is attached illustrating the following two methods for reproduction.
Steps to Reproduce:
- Method 1:
1. Invoke -[UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:] with an arbitrary word known to have a definition (in versions of the iOS SDK prior to 6.0), e.g. "test".
- Method 2:
1. Open an arbitrary webpage in Mobile Safari, or a UIWebView in the iOS 6 simulator, e.g. http://en.wikipedia.org/wiki/Inklings.
2. Select an arbitrary word known to have a definition (in versions of the iOS SDK prior to 6.0), e.g. "group", (the last word in the introduction).
Expected Results:
- Method 1:
-[UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:] returns YES.
- Method 2:
When the selection menu appears, it should show the "Define" menu item.
Actual Results:
- Method 1:
-[UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:] returns NO.
- Method 2:
When the selection menu appears, it does not show the "Define" menu item.
Regression:
This is a regression since iOS 5.1.
Notes:
In both Methods 1 and 2, following the steps to reproduce results in the following message being logged to the console:
"+[_UIDictionaryWrapper _availableDictionaryAssets] returned nothing. Error: Error Domain=ASError Code=4 "The operation couldn’t be completed. (ASError error 4 - Unable to copy asset information)" UserInfo=0x71933a0 {NSDescription=Unable to copy asset information}"
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!