Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interactionController = [UIDocumentInteractionController interactionControllerWithURL:imageFile];
- interactionController.UTI = @"com.instagram.photo";
- interactionController.annotation = [NSDictionary dictionaryWithObject:[self commentForInstagram] forKey:@"InstagramCaption"];
- [interactionController presentOpenInMenuFromRect:self.view.frame inView:self.view animated:YES];
- -(void)shareClick:(UIButton*)sender {
- /*some code*/
- CGRect rectForAppearing = [sender.superview convertRect:sender.frame toView:self.view];
- [interactionController presentOptionsMenuFromRect:rect inView:self.view animated:YES];
- }
- [interactionController presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];
- -(void)openDocument:(UIView*)senderView {
- CGRect rectForAppearing = [senderView convertRect:senderView.frame toView:senderView];
- if (isIPAD)
- rectForAppearing = CGRectMake(100, 100, rectForAppearing.size.width, rectForAppearing.size.height);
- [interactionController presentOptionsMenuFromRect:rect inView:self.view animated:YES];
- - (void)shareClick:(UIButton*)sender
- {
- /*some code*/
- [interactionController presentOptionsMenuFromRect:sender.bounds inView:sender animated:YES];
- }
Add Comment
Please, Sign In to add comment