我添加了在我的應用中將圖片上傳到Flickr的功能。我使用ObjectiveFlickr並使用SnapAndRun示例代碼,並使其工作。唯一的問題是,它看起來很醜陋。試圖清理iOS OAuth代碼
我很少做很多網絡編碼,所以這有點難以理解。
使用OAuth授權我的應用程序似乎通過如此多的功能進行了線索...必須有一個更清晰的方式。
我想過使用塊,但我沒有很好的處理它。
我基本上有一個5步的過程,在一個函數中開始,將一些東西發送到Flickr,它在另一個函數中返回並調用另一個函數,並且在......上...請求令牌......等待答覆,建立一個webview確認...得到另一個令牌...更多的等待...並最終擊中我的上傳代碼。
有沒有人做過這種更清潔的方式?我會喜歡一個小方向。
非常感謝。
THanks。我會試試這個。它已經看起來更清潔了。 – pizzafilms 2013-02-28 15:45:30
您的慷慨代碼發佈中缺少一些屬性或實例變量。我可以使用一點幫助。謝謝。 – pizzafilms 2013-02-28 23:55:45