{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14439","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14439/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14439/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14439/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/14439","id":117839432,"number":14439,"title":"iOS contextual prediction not work with TextField.","user":{"login":"xpol","id":20248,"avatar_url":"https://avatars.githubusercontent.com/u/20248?v=3","gravatar_id":"","url":"https://api.github.com/users/xpol","html_url":"https://github.com/xpol","followers_url":"https://api.github.com/users/xpol/followers","following_url":"https://api.github.com/users/xpol/following{/other_user}","gists_url":"https://api.github.com/users/xpol/gists{/gist_id}","starred_url":"https://api.github.com/users/xpol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpol/subscriptions","organizations_url":"https://api.github.com/users/xpol/orgs","repos_url":"https://api.github.com/users/xpol/repos","events_url":"https://api.github.com/users/xpol/events{/privacy}","received_events_url":"https://api.github.com/users/xpol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T15:37:18Z","updated_at":"2015-12-04T08:01:56Z","closed_at":null,"body":"iOS [contextual prediction](http://www.imore.com/quicktype-keyboards-ios-8-explained) not work with TextField:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/20248/11274704/071199ea-8f15-11e5-833a-faf23893bada.png)\r\n\r\n## Steps\r\n\r\n1. in iOS 8 or above, focus on a TextField to make keyboard shown\r\n2. switch to English (US) keyboard, by tap the globe icon\r\n3. tap globe icon (again) and hold and make sure Predictive is ON (see above prcture).\r\n4. try tap some letters: eg tap `hell` the `hell` get input into TextField immediately (as in picture below marked as **1** ).\r\n5. at same time, the contextual prediction shows, tap the `he'll` (as marked as **2** below) and nothing happened to TextField and the contextual prediction not consumed.\r\n\r\n\r\n## Expected Result\r\n\r\nTextField replace the `hell` with `he'll` and contextual prediction shows new items.\r\n\r\n## Actually Result\r\n\r\nTextFeild not responded to contextual prediction.\r\n\r\n\r\n![image](https://cloud.githubusercontent.com/assets/20248/11275479/c179794e-8f18-11e5-86d0-edca85579ce7.png)\r\n\r\n## PS\r\n\r\nI tested on Android 5.1.1 there is no issue with IME contextual prediction."},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/161903774","html_url":"https://github.com/cocos2d/cocos2d-x/issues/14439#issuecomment-161903774","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/14439","id":161903774,"user":{"login":"xpol","id":20248,"avatar_url":"https://avatars.githubusercontent.com/u/20248?v=3","gravatar_id":"","url":"https://api.github.com/users/xpol","html_url":"https://github.com/xpol","followers_url":"https://api.github.com/users/xpol/followers","following_url":"https://api.github.com/users/xpol/following{/other_user}","gists_url":"https://api.github.com/users/xpol/gists{/gist_id}","starred_url":"https://api.github.com/users/xpol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpol/subscriptions","organizations_url":"https://api.github.com/users/xpol/orgs","repos_url":"https://api.github.com/users/xpol/repos","events_url":"https://api.github.com/users/xpol/events{/privacy}","received_events_url":"https://api.github.com/users/xpol/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T08:01:56Z","updated_at":"2015-12-04T08:01:56Z","body":"current workaround (or solution) is:\r\n\r\nAdd follow property to `CCEAGLView`.\r\n\r\n```objective-c\r\n@property(nonatomic) UITextAutocorrectionType autocorrectionType;\r\n```\r\n\r\nand set its value to `UITextAutocorrectionTypeNo` in `- (id) initWithFrame: pixelFormat: depthFormat: preserveBackbuffer: sharegroup: multiSampling: numberOfSamples:`."}}