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.
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