SLComposeViewController crashes UI with twitter in Japanese Language Environment
| Originator: | inomata | ||
| Number: | rdar://24738341 | Date Originated: | 2016-02-19 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 9.2.1 |
| Classification: | Reproducible: | always |
Summary:
input hashtag on SLComposeViewController with twitter very frequently causes broken UI in Japanese Language.
I think it is an problem of Twitter or Social.framework.
code example:
```
// in ViewController
func postToTwitter(url:NSURL){
let type = SLServiceTypeTwitter
if !SLComposeViewController.isAvailableForServiceType(type) {
print("twitter is invalid")
return
}
let controller = SLComposeViewController(forServiceType: social.type)
controller.addURL(url)
controller.setInitialText("my initial text")
presentViewController(controller, animated:true, completion:nil)
}
```
Steps to Reproduce:
1. Set Japanese language in iOS Settings.
2. Execute the sample code or open any app using SLComposeViewController(i.e. Yelp! app)
3. Open SLComposeViewController.
4. Input hash ('#') and some text without enter key (alphabets or Japanese characters. i.e. type "#a" )
5. If nothing was happened, try (3) again.
6. The dialog becomes empty.(like the attached file)
Expected Results:
keep on editing while input tweets text.
Actual Results:
SLComposeViewController became empty alert dialog.
(please see screenshot)
Version:
iOS9.2.1
Notes:
Note:
(1) This issue is never occurred with English Language settings.
(2) I tried my code and Yelp! application.
(3) I think this problem is caused by hashtag completion. (its ok if type enter key before typing any text after hash(#) )
(4) It may be 1 or 2 times.
Configuration:
iPhone6+, NTT DOCOMO, Using Wi-Fi
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!
Engineering has determined that your bug report (24738341) is a duplicate of another issue (24007220) and will be closed.
The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.