我試圖在應用程序擴展中獲取圖像。問題是,當類型爲「public.image」時,我無法獲取圖像,但是,當類型爲「public.png」時,它會成功。我想要做的只是獲取圖像並上傳到服務器。 這是我正在使用的代碼。 if let extensionContext = self.extensionContext,
let item = extensionContext.inputItems.
這是我的iPhone應用程序的podfile。 平臺:ios,'9.0' use_frameworks! target ‘NearBy Places’ do
pod 'Alamofire', '~> 4.0'
pod 'SwiftyJSON'
pod 'Toast-Swift', '~> 2.0.0'
pod 'MBProgressHUD'
pod