Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/115.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS中的文本输入增益然后立即失去焦点,无法打开软键盘。FocusManager说仍然有焦点。Flex Flash Builder空中移动_Ios_Apache Flex_Mobile_Textinput_Flash Builder - Fatal编程技术网

iOS中的文本输入增益然后立即失去焦点,无法打开软键盘。FocusManager说仍然有焦点。Flex Flash Builder空中移动

iOS中的文本输入增益然后立即失去焦点,无法打开软键盘。FocusManager说仍然有焦点。Flex Flash Builder空中移动,ios,apache-flex,mobile,textinput,flash-builder,Ios,Apache Flex,Mobile,Textinput,Flash Builder,开发环境:FlashBuilder4.7 SDK:Flex 4.6.0构建23201 AIR 3.5 参数:-本地en_US-swf版本=16 测试平台:iPad2上的iOS6 我相信是严重的虫子。使使用这些技术开发的iOS应用完全无法使用 情景:每当我触摸测试平台设备上的TextInput组件时,它都会执行以下两项操作之一: 它将按预期的方式运行。它在调度的事件中获得焦点聚焦,蓝色焦点矩形包围它,提示文本替换为闪烁的光标,软键盘激活并显示所有调度的预期事件。 它将失败。它将在调度的事件中获得焦

开发环境:FlashBuilder4.7 SDK:Flex 4.6.0构建23201 AIR 3.5 参数:-本地en_US-swf版本=16 测试平台:iPad2上的iOS6

我相信是严重的虫子。使使用这些技术开发的iOS应用完全无法使用

情景:每当我触摸测试平台设备上的TextInput组件时,它都会执行以下两项操作之一:

它将按预期的方式运行。它在调度的事件中获得焦点聚焦,蓝色焦点矩形包围它,提示文本替换为闪烁的光标,软键盘激活并显示所有调度的预期事件。 它将失败。它将在调度的事件中获得焦点聚焦,蓝色焦点矩形将短暂出现,然后消失,提示文本保持显示,并且在“focusOut event dispatched”字段中没有光标。发送softKeyboardActivate事件,并立即发送softKeyboardDeactivate事件。键盘甚至不会短暂出现。 我可以轻敲,最终一次轻敲会成功,1次而不是2次

这是最奇怪的事情。focusManager告诉我,在调度focusIn事件和调度focusOut事件后,具有焦点的DisplayObject是同一个对象,如果我使用计时器每隔10毫秒检查一次,结果不会改变。。。正确的DO具有焦点

代码下面是跟踪输出

<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" 
                            xmlns:s="library://ns.adobe.com/flex/spark" 
                            xmlns:mx="library://ns.adobe.com/flex/mx" 
                            xmlns:c="components.*"
                            width="100%"
                            creationComplete="creationCompleteHandler()">

    <fx:Declarations>
            <s:DropShadowFilter id="dropShadowFilter" blurX="6" blurY="6" alpha="0.5" distance="6" angle="60" strength=".5" quality="{BitmapFilterQuality.HIGH}"/>
    </fx:Declarations>

    <fx:Script>
            <![CDATA[
                    import flash.filters.BitmapFilterQuality;

                    import mx.utils.ObjectProxy;

                    import spark.skins.mobile.TextAreaSkin;

                    import views.tools.MakeAToolBase;

                    [Bindable]
                    private var pad:Number = 15;

                    [Bindable]
                    public var dataProxy:ObjectProxy;

                    [Bindable]
                    public var v:MakeAToolBase;

                    protected function creationCompleteHandler():void
                    {
                            trace("LearnItListItemRenderer FUNCTION creationCompleteHander()");
                            dataProxy = new ObjectProxy(data);
                            dataProxy.choosePictureButton = choosePictureButton;
                    }

            ]]>
    </fx:Script>

    <s:layout>
            <s:HorizontalLayout horizontalAlign="center"/>
    </s:layout>

    <s:HGroup id="listItem" gap="33" paddingTop="15" paddingBottom="15" horizontalAlign="center" paddingLeft="15" paddingRight="44"
                      verticalAlign="middle" width="100%" height="210" filters="{[dropShadowFilter]}">

            <s:Group height="100%">
                    <s:Rect height="100%" width="100%" radiusX="5" radiusY="5">
                            <s:fill>
                                    <s:SolidColor color="0xffffff" alpha="1"/>
                            </s:fill>
                            <s:stroke>
                                    <s:SolidColorStroke weight=".5" color="0x000066"/>
                            </s:stroke>
                    </s:Rect>

                    <s:Label text="{dataProxy.numberLabel}" fontSize="32" color="#000072" verticalAlign="middle" verticalCenter="0" paddingLeft="12" paddingRight="12"/>
            </s:Group>

            <c:ChoosePictureButton id="choosePictureButton" height="{listItem.height-pad-pad}" width="{(4*(listItem.height-pad-pad))/3}"/>

            <s:VGroup id="textInputBoxesGroup" height="100%" width="100%">
                    <s:TextInput id="behaviorNameTextInput" color="#000000" textAlign="left" width="100%"
                                            prompt="Enter Behavior Name..."
                                            needsSoftKeyboard="true"
                                            interactionMode="touch"
                                            skinClass="spark.skins.mobile.TextInputSkin"
                                            returnKeyLabel="done"
                                            showPromptWhenFocused="true"
                                            touchBegin="trace('touch');"
                                            softKeyboardActivate=  "trace('#############################    SoftKeyboardActive    #####################################');"
                                            softKeyboardDeactivate="trace('############################# SoftKeyboardDeactivating #####################################');"
                                            softKeyboardActivating="trace('#############################  SoftKeyboardActivating  #####################################');"
                                            focusIn="trace('TEXTINPUT FOCUSIN: '+this.focusManager.getFocus())"
                                            focusOut="trace('TEXTINPUT FOCUSOUT: '+this.focusManager.getFocus())"
                                            creationComplete="{data.behaviorNameTextInput=behaviorNameTextInput;}"
                                            />

                    <s:Spacer id="behaviorSpacer" height="2"/>

                    <s:TextArea id="behaviorDescriptionTextArea"
                                            fontFamily="verdana" fontSize="16"
                                            verticalAlign="top" textAlign="left" width="100%" height="100%"
                                            verticalScrollPolicy="on"
                                            interactionMode="touch"
                                            color="#000000" prompt="Enter Behavior Description..."
                                            softKeyboardType="{SoftKeyboardType.DEFAULT}"
                                            needsSoftKeyboard="true"
                                            showPromptWhenFocused="true"
                                            skinClass="spark.skins.mobile.TextAreaSkin"
                                            creationComplete="{data.behaviorDescriptionTextArea=behaviorDescriptionTextArea}"/>
            </s:VGroup>
            <c:YesNoVerticalButtonsGroup/>
    /s:HGroup>
</s:ItemRenderer>
[为便于阅读,已删除失败的尝试2-22]


在adobe论坛上的一位工作人员的要求下,我也发布了这篇文章,下面的bugbase条目已经创建。如果知道其他人是否有过这样的经历,我将不胜感激:最初的帖子已经转发给Adobe的iOS团队,所以可能很快就会出现更新。在他的命令下,这是用AIR3.4和AIR3.6beta测试的,我自己承担了用为AIR3.4/3.5/3.6beta删除的swf版本编译器参数进行测试的责任。没有快乐。
TEXTINPUT FOCUSIN: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedViewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSkin35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.ListSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.textInputBoxesGroup.behaviorNameTextInput

#############################  SoftKeyboardActivating  #####################################

############################# SoftKeyboardDeactivating #####################################

TEXTINPUT FOCUSOUT: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedViewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSkin35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.ListSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.textInputBoxesGroup.behaviorNameTextInput

############################# SoftKeyboardDeactivating #####################################
TEXTINPUT FOCUSIN: PictureToolsOnTheMoveMakeIt0.TabbedViewNavigatorApplicationSkin6.tabbedNavigator.TabbedViewNavigatorSkin8.contentGroup._PictureToolsOnTheMoveMakeIt_ViewNavigator3.ViewNavigatorSkin35.contentGroup.MakeAToolLearnItView471.SkinnableContainerSkin472.contentGroup.itemList.ListSkin475.Scroller477.ScrollerSkin478.DataGroup476.LearnItListItemRenderer566.listItem.textInputBoxesGroup.behaviorNameTextInput

#############################  SoftKeyboardActivating  #####################################

#############################    SoftKeyboardActive    #####################################