a few example source codes of programming under IOS 6.0