Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的 iOS 项目(使用 swift)的全局级别上为我的所有解析调用添加一些标头。但是我无法找到这样做的方法。有人可以在这里帮忙。
使用ParseClientConfiguration类工作正常!例子:
let configuration = ParseClientConfiguration { $0.applicationId = "APLICATION_ID" $0.server = "SERVER_URL" } configuration.urlSessionConfiguration.httpAdditionalHeaders = ["HEADER_KEY" : "HEADER_VALUE"]