Note that there are some explanatory texts on larger screens.

plurals
  1. POapp crashing due to deallocated instance
    primarykey
    data
    text
    <p>I am having two screens one is for login: The class name is LoginViewController. The screenshot is<img src="https://i.stack.imgur.com/M9qOj.png" alt="enter image description here"></p> <p>It consists of two textfields, Username and the password.</p> <p>On clicking on forgot password: this screen opens the class for this screen is ForgotPasswordViewController <img src="https://i.stack.imgur.com/81esL.png" alt="enter image description here"></p> <p>On tapping the DOB textfield a date picker picker appears from which a date is selected. Now If I press the back button the login screen appears. everything is fine till now. Now if I Tap on The user or the password textfield then the app crashes will this log</p> <p>2013-11-13 13:55:53.582 mRx[4684:60b] *** -[ForgotPasswordViewController respondsToSelector:]: message sent to deallocated instance 0x15d7b510</p> <p>I don't know what is causing this crash. please suggest something to deal with it. I have been 2 days on it but still not near to find the solution for this. Please comment if you need any other info regarding this.</p> <p>the screenshot for the error trail is this:<img src="https://i.stack.imgur.com/KVHb9.png" alt="enter image description here"></p> <p>Please help</p> <p>the code for the textfield to bring the date picker is this:</p> <pre><code> #pragma mark - TextField Delegate Methods </code></pre> <p>- (void)textFieldDidBeginEditing:(UITextField *)textField{ self.txt_currentFocussedTextField = textField; [[AppDelegate sharedInstance] addToolbarForKeyboard:textField];</p> <pre><code>if (textField == self.txt_DOB) { [textField resignFirstResponder]; _actionSheetPicker = [[ActionSheetDatePicker alloc] initWithTitle:@"" datePickerMode:UIDatePickerModeDate selectedDate:self.selectedDate minimumDate:Nil maximumDate:Nil target:self action:@selector(dateWasSelected:element:) origin:textField]; self.actionSheetPicker.hideCancel = NO; [self.actionSheetPicker showActionSheetPicker]; } </code></pre> <p>}</p> <p>The code in the .h file is this:</p> <pre><code> #import &lt;UIKit/UIKit.h&gt; #import "AbstractActionSheetPicker.h" @interface ForgotPasswordViewController : UIViewController&lt;UITextFieldDelegate&gt; @property (strong,nonatomic) UITextField * txt_currentFocussedTextField; @property (strong,nonatomic) IBOutlet UITextField *txt_username; //@property (weak,nonatomic) IBOutlet UITextField *txt_lastname; @property (strong,nonatomic) IBOutlet UITextField *txt_DOB; @property (strong,nonatomic) IBOutlet UITextField *txt_phone; @property (strong,nonatomic) IBOutlet UITextField * txt_zip; @property (strong,nonatomic) IBOutlet UITextField * txt_newPassword; @property (strong,nonatomic) IBOutlet UIButton *btn_save; @property (strong,nonatomic) IBOutlet UIScrollView * scrollview; @property (nonatomic, strong) AbstractActionSheetPicker *actionSheetPicker; @property (nonatomic, retain) NSDate *selectedDate; - (void)forgotPasswordRequest; @end </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload