点击状态栏时间(Tap Status Bar Time)
我在我的应用程序中使用UITableView。 向下滚动后,如果我点击状态栏时间,表格将重新定位到顶部。 知道如何做到这一点,是否有可能拦截行动。 TIA,吉姆B.
I am using a UITableView in my app. After scrolling down, if I tap on the status bar time, the table is repositioned to the top. Any idea how this is done and is it possible to intercept the action. TIA, Jim B
原文:https://stackoverflow.com/questions/3002039
最满意答案
根据Vesper的建议,我使项目规模更大,并使用剪裁。 我不喜欢在屏幕处于最大升级之前有白色边框的事实,但可能没有一种简单的方法可以避免......
而不是通过
(0,0)
和(stage.stageWidth,stage.stageHeight)
绑定所有内容。 我现在通过(LeftX,TopY)
和(LeftX,TopY)
绑定东西,当我运行UpgradeScreen()
我从LeftX
和TopY
减去5LeftX
和TopY
加10Per the advice of Vesper, I made the project size larger, and used clipping. I'm not a fan of the fact that there's a white border until the screen is at its maximum upgrade, but there probably isn't an easy way to avoid that...
Instead of binding everything by
(0,0)
and(stage.stageWidth,stage.stageHeight)
. I am now binding things by(LeftX,TopY)
and(myWidth,myHeight)
and when I runUpgradeScreen()
I subtract 5 from bothLeftX
andTopY
and add 10 to bothmyWidth
andmyHeight
相关问答
更多-
检查屏幕对象如何做到这一点: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Screen.html#includeExamplesSummary 你可以很容易地找出你的NativeWindow的尺寸,然后找到它的屏幕,并通过这样看到界限: var appBounds : Rectangle = stage.nativeWindow.bounds; var screen : Screen = S ...
-
更改屏幕大小的内容(Changing Content on screen Size)[2022-03-05]
如果将表格内容设置为display: none ,那么表格将没有width和height ,您可以使用opacity: 0或visibility:hidden来隐藏表格内容,否则您需要为表格设置宽度或高度。 @media screen and (max-width: 500px) { .deneme { background-image: url("http://puu.sh/swfNa/16cb398a98.jpg"); } .deneme tr { opacity: ... -
看来,xScale和yScale可能不会超过0x8000 ...... 大小本身也似乎是绑定...我发现了一个限制0x6666660 ... 这里的代码: package { import flash.display.*; public class Main extends Sprite { public function Main():void { var size:Number = 1; var s:Shape = ...
-
我很无聊所以我做了一个小小的演示。 看看下面的链接。 演示: http : //ronnieswietek.com/_random/phone_nums.swf 资料来源: http : //ronnieswietek.com/_random/phone_nums.fla 下面的代码可能有点臃肿,但这是出于演示目的 import flash.events.MouseEvent; import fl.controls.TextInput; import flash.display.Sprite; var l ...
-
在Flash CS6(AS3)中通过拖放动态更改文本(Changing text dynamically with drag / drop in Flash CS6 (AS3))[2023-11-09]
您可以使用布尔变量来指示您的按钮是否被拖动以及是否,然后更新您的文本字段,如下所示: var is_dragged:Boolean = false; var rectangle:Rectangle = new Rectangle(0, 100, stage.stageWidth - button.width, 0); stage.addEventListener(Event.ENTER_FRAME, _onEnterFrame); function _onEnterFrame(e:Event):void ... -
根据Vesper的建议,我使项目规模更大,并使用剪裁。 我不喜欢在屏幕处于最大升级之前有白色边框的事实,但可能没有一种简单的方法可以避免...... 而不是通过(0,0)和(stage.stageWidth,stage.stageHeight)绑定所有内容。 我现在通过(LeftX,TopY)和(LeftX,TopY)绑定东西,当我运行UpgradeScreen()我从LeftX和TopY减去5 LeftX和TopY加10 Per the advice of Vesper, I made the proje ...
-
如果您的布局是用xml定义的,则可以为每个屏幕大小创建一个布局(layout-xlarge / mylayout.xml,layout-large / mylayout.xml,layout-normal / mylayout.xml等) 更多信息在这里: http : //developer.android.com/guide/practices/screens_support.html 不要看密度,因为10.1英寸平板电脑具有中等密度,但具有480x850分辨率的4.3英寸手机具有高密度。 改为使用屏幕 ...
-
代码不是很好,因为 有一堆重复的代码 有一些不必要的神奇数字 它没有很好地封装 您可以通过为边框创建类来解决问题3. 1.通过只有一次绘制边框的代码来解决。 最后,通过重用代码甚至初始化来解决问题。 package { import flash.display.Shape; import flash.events.Event; public class BackgroundShape extends Shape { private var margin:Nu ...
-
如果您希望应用的尺寸根据浏览器的大小进行更改,则需要执行以下操作: 在HTML嵌入代码中将SWF的宽度和高度设置为100% 由于您将自己处理应用程序的布局,因此还需要将scale属性设置为noscale (仍在嵌入代码中) 在Flash set stage.scaleMode = "noScale"然后使用stage.stageWidth和stage.stageHeight来获取浏览器窗口的大小,以及布局应用程序。 最后,考虑在浏览器窗口更改时监听Stage.RESIZE以更新布局。 所有这些都适用于常规浏 ...
-
AS3本身不支持此功能。 有些解决方案使用java或其他技术来流式传输流式媒体服务器,例如Flash Media Server(我猜Fuze Meetings使用类似的东西),但是你不能仅仅使用Flash Player来实现这一点。 Adobe的Connect Now通过其Acrobat.com服务支持一些屏幕共享。 AS3 does not support this per se. There are some solutions that use java or other technologies t ...