24 January 2012

輕鬆開發無障礙 iOS Apps



如果同一篇文章提供中文、英文、日文版本,你會選擇看哪一個版本?

大家當然會選擇自己最熟悉的語言版本來閱讀吧。

試想像一下,如果這篇文章只能提供俄文版本,你的感受會如何?

你會否有種「得物無所用」的感覺呢?

原來在我們的身邊有一群視障朋友就經常遇到類似的問題。

或許你會問他們是如何使用 iPhone 呢?

iOS 以及 Mac OSX 也內置了一個名為 VoiceOver 的功能,簡單來說它會為視障朋友朗讀出畫面上的文字內容以及能夠使用的按鈕。視障朋友就能夠較為輕鬆地了解程式的操作方法以及讀取到程式提供的資訊了。

藉著 VoiceOver,開發者也能很方便地開發到適合視障朋友使用的 iOS Apps。

凡是有文字的,VoiceOver 也能自動朗讀得到的,包括內含文字的 UIButton、UITextView 以及 UIWebView 之類的東西...
而所有圖像類的按鈕以及資訊,VoiceOver 則不能自動朗讀,需要依靠開發者在背後加一點小東西便可。

這裏有一個範例:
accessibility.zip

在下載範例的同時可看看如何開啟及使用 VoiceOver:
Accessibility Solutions for iPhone

下載後,可開啟這個 project 看看。


然後嘗試在自己的設備執行這個 project


請打開 VoiceOver 並嘗試聆聽它對畫面上各項的描述。

在這個例子裏,Button1 以及 UITextView 內的東西完全聽到沒有問題,只有由圖案組成的 UIButton 讀不出甚麼來。

想讓 VoiceOver 讀到這個 Button 其實很簡單。

現在我們先回到 Xcode,然後打開 ViewController.xib


按 Objects 內的 closeButton 物件,然後打開 Identity inspector (option + command + 3)


大家會看見大部份的物件內,Accessibility 都是預設為 Enable 的。如果沒有選 Enable,VoiceOver 便不會朗讀出這個物件的。

現在我們試試在 Label 或 Hint 那一項輸入 "Close",再次執行程式,VoiceOver 便會讀出 "Close Button" 的了。

如果我們在 Traits 選項點選 Image,VoiceOver 便會朗讀 "Close Image" 的了。


其實只是一個好簡單的步驟就可以讓你的 Apps 支援無障礙科技了,何樂而不為?


最後也要為喜歡直接用 code 的朋友提供一些資料:
myButton.accessibilityElementsHidden = YES; (讓某些物件不被 VoiceOver 朗讀到)
myButton.accessibilityLabel = @"Label"; (設定物件的 Accessibility Label)
myButton.accessibilityHint = @"Hint"; (設定物件的 Accessibility Hint)
UIAccessibilityIsVoiceOverRunning (用作偵測是否正使用 VoiceOver 的 BOOL)
更詳細的資訊可參考 Xcode 內有關 Accessibility 的 Document。


想了解更多有關無障礙開發的資料可參考:
Accessibility Programming Guide for iOS

無障礙環境,由你我開始!

21 January 2012

讓你在朋友聚會中人氣爆燈的 - 趣怪IQ題


乘長途車很悶? 想在朋友聚會中搞搞氣氛? 想提升自己的幽默感?

本書為你精選大量得意趣怪IQ題, 每一題都經過精心挑選、重新編寫, 務求更有趣更好玩!

《趣怪 IQ 題》實在是居家旅行、朋友聚會、約會情人必備!

更是農曆新年必備的聯誼妙品!

免費版有 80 題題目, 完全版增加至 193 題題目。

*部份題目為保存原味, 因此無可避免地需要使用廣東話入文, 敬請見諒!
*特別加強對 VoiceOver 的支援, 無障礙環境由你我做起!




 

 

06 January 2012

Magic lighting tool - Light +



Light + let your iOS device become a magic lighting tool, its like having your own little rainbow.

You are free to choose the shape and color, to help take exquisite photograph, light painting, bicycle safety lights, repair lights, emergency lighting, etc.
Through different shape, lighting mode and color can produce infinite possibilities.

How to use:
If you want to change the color or brightness just touch the screen and drag your finger to wherever color you want. For more functions, please double tap screen to settings page.

In settings menu...
1. You can choose different shape for different use. (For example, you can choose safty light shape to make your iPhone into a bicycle safety light)
2. Light + has three modes of the light, Normal mode for keep lighting, Rainbow mode will Constantly changing the color of torch, Flashing mode will non-stop flashing.
3. You can adjust Frequency for Rainbow mode or Flashing mode.

讓你發揮無限創意的 magic light 工具

你可自由選擇形狀、顏色與閃動模式,用來協助拍攝精美產品照片、光塗鴉、單車安全燈、修車指示燈、緊急照明等
透過不同的電筒形狀、模式及顏色,可以組合出無盡可能性。

如何使用:
第一次進入程式時會顯示使用提示。
1. 接觸及拖曳屏幕便可以改變顏色及亮度。
2. 連按兩下便可以進入設定畫面。

設定:
1. 選擇不同的形狀作不同的用途。
2. Light + 有三種不同的閃動模式,包括:Normal 是保持光亮模式,Rainbow 會不停轉變顏色,Flashing 會不停地閃動。
3. 另外你亦可以調節 Rainbow 及 Flashing 模式的速度。








05 January 2012

如何查閱你曾經購買過的蘋果產品



蘋果之所以有今日的成功除了有不錯的創新能力之外,良好的售後服務也應記一功。

你還記得自己買了多少件蘋果產品、何時買、還有保養嗎?我可以告訴大家,我完全記不起來 ^_^
不過,細心的蘋果早就幫你仔細的記住了,想查看的話請進入以下網址:

My Support Profile - Apple Support

登入時請輸入你購買產品或激活產品時所使用的 Apple ID 及密碼便可。

登入後可以看到甚麼呢?

1. 產品的登記狀況、電話支援以及保養狀況。
2. 維修紀錄之類。
3. 以及與機體相關的資訊等。

有興趣的朋友也可以試試登入 My Support Profile 看看自己曾經買了多少件蘋果產品哦 ^_^

19 December 2011

Powerful Spirit Level App - Level +



This is a simple and powerful spirit level app to help you measure horizontal or vertical of any objects.

Features:
- Measure ring, Make you more convenient measurement.
- Measure the level of surface.
- Can be calibrated and will be saved automatically.