Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7559839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:44:20+00:00 2026-05-30T12:44:20+00:00

I try to send an image with the help of shareKit without using an

  • 0

I try to send an image with the help of shareKit without using an actionSheet but using my own button with

...
// --- add the mail button ------------------------------------
UIButton *buttonMail = [UIButton buttonWithType:UIButtonTypeCustom];
buttonMail.frame = CGRectMake( 0,0, btnW, btnH); 
[buttonMail setImage:[UIImage imageNamed:@"btn_mail.png"] forState:UIControlStateNormal];
[buttonMail addTarget:self action:@selector(sendPerMailEvent:) forControlEvents:UIControlEventTouchUpInside];
...

        // the sharekit image object
        item = [SHKItem image:image title:@"Name of the image" ];
        item.text = @"some text...";
        [SHK setRootViewController:self.webView.window.rootViewController];
...

and

-(void)sendPerMailEvent:(id)sender {    
    [SHKMail shareItem:item];
    [self closeScreenshotView];
}

but when I click the button xcode is throwing me an “EXC_BAD_ACCESS” error at the first line of shareItem():

+ (id)shareItem:(SHKItem *)i
{
    [SHK pushOnFavorites:[self sharerId] forType:i.shareType]; // -> EXC_BAD_ACCESS

I am new to objective-c and the app is made with use of phonegap.
thnx!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:44:22+00:00Added an answer on May 30, 2026 at 12:44 pm

    now I found out: I needed to add a [item retain], thats it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to send a sms using next code, but recipient gets my message
I try to send an email, but I have a problem, however, I found
I try to send a request to my server via GET, but qooxdoo sends
i try to send some data to my php file from ajax , but
i try to send data to my php scripts but i think i miss
i try to send my datas to php with ajax but there's strange mistake.
I am trying to upload an image to server using using XMLHttpRequest but fails.
I'm using the Forge file module to try and upload an image from the
I have this Exception when I try to send an image from ES file
I need to Send Image from silverlight to WCF service. I try to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.