Sharing Extension in IOS8 beta

后端 未结 7 1909
天命终不由人
天命终不由人 2020-12-24 08:40

I\'m trying to create a sharing extension using the new iOS 8 app extensions. I tried to get the current URL of a Safari site to show it in a UILabel. Simple enough.

相关标签:
7条回答
  • 2020-12-24 09:36
    let itemProvider = item.attachments?.first as! NSItemProvider
    itemProvider.loadItemForTypeIdentifier("public.url", options: nil) { (object, error) -> Void in
         println(object)
    }
    

    so println : http://detail.m.tmall.com/item.htm?id=38131345289&spm=a2147.7632989.mainList.5

    0 讨论(0)
提交回复
热议问题