Kin'blog

喜欢coding。喜欢大海。


  • Home

  • Archives

  • Brief

  • Tags

  • About

Cocos2d HTML5 Sprite 绑定点击事件

Posted on Jul 16 2014 |

在Cocos2d HTML5, 发现 Sprite 类没有点击事件,需要注册点击的代理, 才能接受点击事件。下面一段代码写了一个可以接受点击事件的 DemoSprite 类。

Read more »

IE reload iframe

Posted on Jun 16 2014 |

最近“致力于”调 IE9 、IE10 、 firefox 、 chrome 浏览器对 iframe刷新。 发现在IE浏览器中,有些刷新 iframe 的方法会加载缓存。以下就对一些方法在 IE9 、IE10(以下简称IE)的产生效果介绍一下:

Read more »

iOS7 UINavigationController 导致 UIScollView 尺寸变化

Posted on Mar 16 2014 |

在 iOS 7 中,如果某个UIViewController的 self.view 第一个子视图是UIScollView, 同时当这个UIViewController被 push 或initWithRootController 成为UINavigationController控制的 Controller 时,这个UIViewControlle的 view 的子视图UIScollView的所有子视图, 都会被下移64px。

这个下移 64px 的前提是 navigationBar 和 statusBar 没有隐藏。因为为 statusBar 默认的 Height 是 20px,而 navigatiBar 默认的 Height 是 44px

Read more »
1…131415
aikin

aikin

45 posts
60 tags
RSS
GitHub Segmentfault
© 2019 aikin
Powered by Hexo
Theme - NexT.Mist