AVPlayer and AVAudioPlayer on iOS

(Polderpark.Netherlands) I like the bright color in this picture. Although this photo was taken almost 10 years ago, the image quality is so great that I still can’t believe it’s taken by a cheap camera at that time. **** It’s easy to play and control local mp3 files by using AVAudioPlayer. However, if someone wants to stream playing mp3 files from the internet, he should try AVPlayer instead. Spend most of my time trying to find a remote mp3 for testing. Too bad that I just can’t even find one. Eventually, I gave up searching on the internet. Instead, I use following python command to create a simple http server locally on my mac: ...

March 30, 2013

App程式設計入門 iPhone . iPad

(Taipei.Taiwan) 這本書寫得很淺顯易懂, 但缺點是,每一個章節都是點到為止, 而且用字有點太過白話。 做為第一本iOS入門書還不錯, 只是想要深入了解iOS programming,或是要可查詢的工具書的話, 要再多買幾本書才行。 ...

March 26, 2013

在未參加iOS developer program的前提下,在iPhone/iPad實機上測試開發中app

(Taipei.Taiwan) 該做的正事不認真,寫程式倒是花了不少時間。 今天總算有了點進展,先是把addTags的功能搞定, 再來是加上了Favorites的頁面,可以顯示自己加過特定tags的照片。 ...

February 20, 2013

難搞的oAuth Process和文件不夠清楚的flickr Developer Documentation

(JingMei Bridge.Taipei) 試圖為抓下來的圖片加上一個tag,查了flickr api dev guide,對於這種request應該要使用post method才行。可是flickr上的api explorer還是用舊的token方式,而api說明頁又說得不清不楚,只說舊版的token要deprecated,要用新版的oAuth。卻沒說清楚oAuth的signature要怎麼生出來。 ...

February 20, 2013

iOS Programming

(Chamonix.France) 看了幾課教學後,總算是有點小進度了。 不看還不曉得,原來xcode的開發環境這麼完整和方便, 是我太久沒有接觸開發環境了嗎? 感覺上eclipse的android開發環境還是那麼地原始呀。 ...

February 17, 2013

iOS 6 Auto Layout versus Springs and Struts

雲,看了總是讓人有種脫離現實的感覺。 在看iOS programming videos時,xcode中的springs and struts我就是一直找不到。影片裡在做操作時,只能看著乾瞪眼。後來上網找了一下才發現,在iOS6中多了Auto Layout的功能,讓開發者能夠用更好(?)的方式調整UI。如果想用回舊的方式,只需要uncheck一下選項就可以了。 ...

February 5, 2013