浏览代码

Merge pull request #387 from UnityTech/fix_aa_shapehintbug

fix PLUGIN
/main
GitHub 5 年前
当前提交
fd2b33c5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm

4
Runtime/Plugins/platform/ios/UIWidgetsTextInputPlugin.mm


NSUInteger selectionBase = ((UIWidgetsTextPosition*)_selectedTextRange.start).index;
NSUInteger selectionExtent = ((UIWidgetsTextPosition*)_selectedTextRange.end).index;
NSUInteger composingBase = -1;
NSUInteger composingExtent = -1;
NSUInteger composingBase = 0;
NSUInteger composingExtent = 0;
if (self.markedTextRange != nil) {
composingBase = ((UIWidgetsTextPosition*)self.markedTextRange.start).index;
composingExtent = ((UIWidgetsTextPosition*)self.markedTextRange.end).index;

正在加载...
取消
保存