【发布时间】:2010-11-10 04:25:43
【问题描述】:
在 Safari 中启动 URL 在 iPhone 应用程序中非常简单 - UIApplication 的 openURL 方法。
但是,我正在做一些 OAuth 的事情,并想关注 pattern that pownce used to handle OAuth。但是自从OAuth wants me to explicitly set the Authorization header之后,我不知道如何进行。我可以通过 NSMutableURLRequest 设置标头...但这如何转化为创建我的应用可以传递给 UIApplication 方法的 NSURL?
【问题讨论】: