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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:39:04+00:00 2026-05-23T09:39:04+00:00

@interface SignDocumentController : UIViewController<NSXMLParserDelegate> { NSMutableString *signFaxString; NSString * messageId; NSMutableData *xmlData; NSURLConnection *connectionInprogress;

  • 0
@interface SignDocumentController : UIViewController<NSXMLParserDelegate> {
    NSMutableString *signFaxString;
    NSString * messageId;
    NSMutableData *xmlData;
    NSURLConnection *connectionInprogress;
    NSURLConnection *connectionInprogress2;


    NSString * annotationKey;

    NSString *firstName;
    NSString *lastName;
    NSString *date;
    NSString *signature;


    IBOutlet UIImageView *image;
}

@property(nonatomic,retain)UIImageView * image;


@end

-(void)parser:(NSXMLParser *)parser
didStartElement:(NSString *) elementName
 namespaceURI:(NSString *)namespaceURI
qualifiedName:(NSString *)qName
   attributes:(NSDictionary *)attributeDict
{

    if ([elementName isEqual:@"SignatureInfo"]) {

        signFaxString = [[NSMutableString alloc]init]; 

        firstName = [attributeDict objectForKey:@"FirstName"];
        lastName = [attributeDict objectForKey:@"LastName"];
        date = [attributeDict objectForKey:@"Date"];
        signature = [attributeDict objectForKey:@"Signature"];
    }

    if ([elementName isEqual:@"AddAnnotationResult"]) {
        signFaxString = [[NSMutableString alloc]init]; 
    }


}

the values for firstName, lastName, date, signature do not stay and I get an error when I try accessing firstName, lastName ETC in a different method:

[CFString respondsToSelector:]: message sent to deallocated instance 0x4ec63b0

I have tried using :

firstName = [NSString stringWithString attributeDict objectForKey:@"FirstName"]; 

but that does not work either. I know this is a silly question but I could use some help.

Thanks

  • 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-23T09:39:05+00:00Added an answer on May 23, 2026 at 9:39 am

    you could also declare the firstName and others as property and retain . As below

    @property(nonatomic,retain)NSString* firstName;
    @property(nonatomic,retain)NSString* lastName;    
    @property(nonatomic,retain)NSString* date;
    @property(nonatomic,retain)NSString* signature;
    

    And in .m class.

    @synthesize firstName,date,lastName,signature;
    

    and release them in dealloc function.

    Use with self all your property variable in you class.

    self.firstName = [NSString stringWithString:attributeDict objectForKey:@"FirstName"];
    

    EDITED:

    Also consider @bbum comment ..

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

Sidebar

Related Questions

@interface UICustomSwitch : UISwitch { } -(void)setLeftLabelText:(NSString *)labelText; -(void)setRightLabelText:(NSString *)labelText; @end @implementation UICustomSwitch -(UIView
In interface builder I have created a UIVIew (the view of a UIViewController) containing
Interface Builder can be used for basic dependency injection in a Cocoa app, but
The Interface Segregation Principle (ISP) says that many client specific interfaces are better than
An interface is a 100% abstract class, so we can use an interface for
In interface builder i've created a UITextfield within a subclass of a UITableViewCell. The
public interface IBar {} public interface IFoo : IBar {} typeof(IFoo).BaseType == null How
If I have interface IFoo, and have several classes that implement it, what is
I have an Interface called IStep that can do some computation (See Execution in
I see many user interface control libraries for .NET, but where can I get

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.