Category Archives: Uncategorized

Happy New Year! Wish you all have a successful 2012!

invivo will publish several iOS app in early 2012. stay tune!

Get iOS Version 獲得 iOS Version 的方法

相比 iOS5,在操作時會有些 bug (UIImagePicker Controller 的 bug) 或者誤用一些 iOS5 才新增的 APIs 如 UISlider 的 TintColor。為免觸及以上情況,可以用一些簡單的方法去獲得 iOS 的方法以下:

UIDevice *device = [UIDevice currentDevice];
deviceName = [device model];
OSName = [device systemName];
OSVersion = [device systemVersion];

又或者可以用以下的 C function 去看看系統有沒一些 class 的存在:

若純粹針對這個 object 能否執行某個 message (method),可以用:
[object isResponseToSelector:@selector(functionName)];


讓 Eclipse 在 mba 跑得快。Make Eclipse Run Faster on Mac

有見 Eclipse 在 Android Run 得奇慢。所以我 StackOverflow 找找有沒讓 Eclipse Run 得快一點點。


對住 right click -> show package contents

然後用 TextEdit 開啟 Contents/MacOS/eclipse.ini 檔案

在這個 ini 檔 set 以下設定:

Dosgi.requiredJavaVersion = 1.6  //設定 Java version 去 1.6


Xmx1024m <== 讓 eclipse 食多點 ram.

那就可以了,在 mac mini 感動分別不大。我會再於 Macbook Air 上面測驗。

We are revamping our site!

Thanks Wiky! My student when I was teaching in VTC. He help me to revamp our stie as we are too busy to do that!

One more noticeable point, our app working for Canon Hong Kong is in App Store now! You may search “donate a smile” in iTunes App Store and share the fun with your friend!

Ocean Park Halloween Bash 十月全城哈囉喂

Fatal error: Call to undefined function is_post_publicly_viewable() in /home/invivo/www/mobile/blog/wp-includes/media.php on line 1648