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 1097127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:23:07+00:00 2026-05-17T00:23:07+00:00

i am trying and trying…. but no result yet. i have a view with

  • 0

i am trying and trying…. but no result yet.

i have a view with a navigationcontroller and -bar. in addition there is a tableview.
if you click on a row, the iphone email function is getting startet by using the email example from apple (MailComposerViewController.h and .m).
it opens and i am able to send or cancel the mail. after that the “dismissModalViewControllerAnimated” methode is dismissing the emailing view. everything looks right, i am in the previous view now, BUT:
when i want to use buttons from the navigationitem or if i want to add rows to the tableview, the app is crashing without any error message.
do i have to set something back or to “remove” something which is still there because of the mailing view?
it’s really strange and i am searching now for hours……. 🙁

thank you very much in advance!
hopefully someone has an idea.

EDIT:
ok, here i have the code now:

in a tableview which is included in a navcontroller i have following lines to open first a Subclass of UIViewController:

- (IBAction)Action:(id)sender
{


        DetailViewController *editViewController = [[DetailViewController alloc] initWithNibName:@"TripDetailViewController" bundle:nil];
            // ...
            // Pass the selected object to the new view controller.
        [self.navigationController pushViewController:editViewController animated:YES];
        editViewController.navigationItem.prompt = @"Details";
        [editViewController release];


}

in the DetailViewController following action is processed when the user clicks on the button:

- (IBAction)mailTrip:(id)sender {

    MailComposerViewController *mailComposer = [[MailComposerViewController alloc] init];

    [[[self view] window] addSubview:[mailComposer view]];

    [mailComposer showPicker:sender];

}

when i press the related button, the MailComposerViewController pushes up correctly. all functions of the MailComposerViewController are working correct.
but when i send or cancel the mail and the MailComposerViewController disappears, my previous view doesn’t work anymore.
in the MailComposerViewController-Example from apple the MailComposerViewController just disappear and the previous view is working fine again…. 🙁

  • 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-17T00:23:08+00:00Added an answer on May 17, 2026 at 12:23 am

    ok, i found the stupid simple problem.
    the MailComposer-View was after dismissing it still over the previous view.

    i did set the propert hidden after dismissing and now it works…

    [self dismissModalViewControllerAnimated:YES];
    [[self view] setHidden:YES];
    

    but i am really not sure if this is the right way to do it…

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

Sidebar

Related Questions

Trying to remove loading animations when individual images have finished loading but have run
trying to get my first HTML/CSS uni assignment sorted but have become a bit
Trying to do something really simple, but can't figure out the syntax. I have
Trying this again I have this samplet of code it is not complete but
Trying to make information about image below it. But have A problem... Pseudo element
trying to figure out why this is happening - I have an input text
Trying to find some information on this but am unable to get any results
Trying to execute a Powershell cmdlet from a MVC 3 Controller using impersonation but
Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
Trying to convert a perl script to php. In perl I have a hash

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.