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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:09:14+00:00 2026-06-06T22:09:14+00:00

I am having a major problem with my iPhone app. My problem seems basic

  • 0

I am having a major problem with my iPhone app. My problem seems basic but I cannot find out the reason for the error. I have a NSString saveDescription that is set by user’s input.

 savede = civilsJobDescTb.text;

I then call in a NSLog to check the string has been set, and it is. So I have no problem there.

Later in the program I create a PDF file with several details. Everything works ok except the NSString that I have set earlier. It seem as if the string no longer exists. I get an error from it. EXC_BAD_ACCESS or something like that.

Now for the weird thing. This only happens when I have a whitespace in the text box. Eg: I enter “ok” and it will work without problem. But if I enter “Everything is ok” then I get errors.

I can’t see where the problem is. Any ideas?

  • 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-06-06T22:09:15+00:00Added an answer on June 6, 2026 at 10:09 pm

    You didn’t specify if your “savede” is an ivar (instance variable) but assuming that it is,

    and if you are using ARC, set a strong property to it:

    @property (nonatomic, strong) NSString * savede;
    
    self.savede = civilsJobDescTb.text;
    

    If you are not using ARC, then make sure to retain your “savede” string after setting it. Something like:

     savede = civilsJobDescTb.text;
     [savede retain];
    

    (making sure to release it when you are truly finished with it).

    You can also make a copy of the string (in case the label that it’s coming from disappears, or is cleared, or somehow disappears).

    [savede setString: civilsJobDescTb.text];
    [savde retain];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having major problem in Data Binding. I have a stackpanel with an
I've been having nothing but trouble with python2.6 and Snow Leopard. One major problem
I am sure this question has been answered somewhere but I'm having major problems
I'm having a major problem getting a parent/child relationship working for a hierarchy of
I'm having a major problem with writing values into a new CSV file. I
I'm having a problem with the latest major release of SwiftMailer where the decorator
i'm trying to build a Java applet and i'm having a major problem trying
Ok Hi Help help help I am having a major problem with setTimeout it
This is giving me major headaches! I'm having trouble even describing the problem in
I'm having a major problem with this school assignment; lucky I started it early

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.