How to open twitter page in twitter app from my iphone app?

后端 未结 5 1844
一向
一向 2021-02-04 01:44

The page I want to open using twitter app:

https://twitter.com/#!/PAGE

To open twitter app I use the following code:



        
5条回答
  •  情深已故
    2021-02-04 02:22

    You are looking for the following url:

    twitter:///user?screen_name=PAGE
    

    Note that Twitter is not installed on all devices. You should check the result of openURL method. If it fails, open the page in Safari with regular url.

提交回复
热议问题