Monthly Archives: April 2010

WebView 小技巧

apple 把 webview 封装的实在太简单了.

留给开发者只有寥寥几个api,甚至连scrollview的基本操作都没法完成.

不过下面这个方法

stringByEvaluatingJavaScriptFromString:String

还是给了些希望.

搜索后发现果然javascript提供了一系列移动页面的操作

  • window.pageYOffset   获得当前页面的偏移
  • window.scrollTo(x,y) 将页面偏移到指定位置

这样我的需求就实现了.当然js能做的事情太多了,给webview换一套css也不是不可能的.

好像 Reeder 以及 便携百科ipad 就是这么做到的吧. 这两款软件都做得相当完美,体验上也无可挑剔.作者确实费了不少心血.

用心的产品才能引起共鸣.

A new approach to my career

谢谢.

再见.

嗯,时光飞逝,岁月如梭(冷..)

在上海的4个月后,我辞职了.

算上两份实习,目前我共做过4份工作,内容上分别是.

web 开发(Rails), web 开发(Java),  iphone 软件 , 跨平台游戏.

算是体验了不少东西,也认识了不少各行业的朋友.

但接下来不可再随性下去,控制自己的欲望,得制定些人生的目标了.

日复一日

月复一月

年复一年

这个月,开始挑战些极限的东西.

Apple 发疯了

Apple 发布了 os4.0

新的Game Center -> openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了

iAD -> 公开指责 google ,又一个敌人

以及 3.3.1

3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).

这下 unity 和 即将来临的flash也被一棍打死了。

unity3d 论坛火爆讨论

Adobe 目前在twitter上的声明 :AdobeWe are looking into the new SDK language. We continue to develop Packager for iPhone OS which will debut in Flash #CS5

当然cocos2d 也赶紧来了个声明,哈哈不关我的事