首页 \ 问答 \ 点击状态栏时间(Tap Status Bar Time)

点击状态栏时间(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
更新时间:2022-05-15 07:05

最满意答案

根据Vesper的建议,我使项目规模更大,并使用剪裁。 我不喜欢在屏幕处于最大升级之前有白色边框的事实,但可能没有一种简单的方法可以避免......

而不是通过(0,0)(stage.stageWidth,stage.stageHeight)绑定所有内容。 我现在通过(LeftX,TopY)(LeftX,TopY)绑定东西,当我运行UpgradeScreen()我从LeftXTopY减去5 LeftXTopY加10


Per 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 run UpgradeScreen() I subtract 5 from both LeftX and TopY and add 10 to both myWidth and myHeight

相关问答

更多
  • 检查屏幕对象如何做到这一点: 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 ...
  • 如果将表格内容设置为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 ...
  • 您可以使用布尔变量来指示您的按钮是否被拖动以及是否,然后更新您的文本字段,如下所示: 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 ...

相关文章

更多

最新问答

更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的