iOS開發之山寨版新浪微博小結

2022-03-11 00:38:22 字數 619 閱讀 8784

中獲取微博的內容是使用我自己的access_token來請求的資料,那麼如何讓其他使用者也能登陸並獲取自己的微博內容呢?接下來就是oauth和sso出場的時候啦。oauth的全稱為open authorization 開發授權,sso--單點登陸(single sign on)。至於其原理是什麼,更具體的介紹網上的資料是一抓一大把,在這就不做過多的原理性的概述。當然啦,oauth和sso在web和其他手機終端上應用還是蠻多的,所有這方面的資料也是多的很。

1.還是在部落格的開頭先來幾張截圖(第一張是沒有登入時的啟**,第二張是獲取授權的頁面,第三張是授權後的頁面,第四張是把之前寫的ios開發之自定義表情鍵盤(元件封裝與自動布局)

,在這就不做贅述了。

1 - (void)didreceiveweiboresponse:(wbbaseresponse *)response210

else

if ([response iskindofclass:wbauthorizeresponse.class

])1120}

21 }

,在這就不做贅述。

IOS新浪微博分享鏈結

所以,筆者這裡把分享的文字和url拼在一起,結果就可以分享帶鏈結的內容了。把分享內容和ulr拼接在一起 nsstring sinacontent nsstring stringwithformat content,url sharedcontent sharesdk content sinacont...

ios 新浪微博開發 14(新特性2)

在上次的基礎上進行 的修改 import qhnewfeatureviewcontroller.h define qhnewfeaturecount 4 inte ce qhnewfeatureviewcontroller property nonatomic,weak uipagecontrol ...

ios 新浪微博開發 15(新特性3)

注釋寫的很詳細 import qhnewfeatureviewcontroller.h import qhtabbarviewcontroller.h define qhnewfeaturecount 4 inte ce qhnewfeatureviewcontroller property non...