sé cómo mostrar una imagen solitaria:de intercambio de múltiples elementos con sharekit en facebook
// Create a UIImage.
UIImage *image = [UIImage imageNamed:@"ShareKit.jpg"];
// Wrap the UIImage within the SHKItem class
SHKItem *item = [SHKItem image:image title:@"This image was sent with ShareKit!"];
// Create a ShareKit ActionSheet and Assign the Sheet an SHKItem
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the ActionSheet in the current UIView
[actionSheet showInView:self.view];
y cómo compartir un enlace solitaria:
// Create an NSURL. This could come from anywhere in your app.
NSURL *url = [NSURL URLWithString:@"http://mobile.tutsplus.com"];
// Wrap the URL within the SHKItem Class
SHKItem *item = [SHKItem URL:url title:@"Mobiletuts!"];
// Create a ShareKit ActionSheet and Assign the Sheet an SHKItem
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
// Display the ActionSheet in the current UIView
[actionSheet showInView:self.view];
pero no sé cómo compartir tanto enlace como imagen al mismo tiempo. ¿Puede alguien ayudarme con esto?
hola ... ¿le interesaba cómo agregar la descripción también? ¿Quiere decir texto, url e imagen al mismo tiempo? – lakesh
alguna idea sobre eso? necesito alguna guía? – lakesh
@lakesh el ejemplo que he dado muestra el texto, la URL y la imagen que se comparten en una solicitud. Vea cómo el diccionario usa 3 pares de clave-objeto en su creación de instancias. – imnk