objective c - Unrecognized selector sent to instance when trying to dismissViewController -


I have a button on the View Controller that presents a Model View Controller. I'm starting a UIImage view in the Init method of the View Controller, above that I have a button (end) above a custom one and the previous one. When I press the finish button, I want to dismiss the Model View Controller and I also want to pop the initial view controller (which presents a model). The problem is that I am getting the following error:

  2014-04-21 19: 31: 16.223 signature [5343: 60b] - [UIImageView set enabled enabled display:]: unknown The selector has been sent for example 0x16d73550   

This is the relevant code:

This is done when I turn on the Model View Controller:

  - (zero) onSignButtonPressed: (ID) sender {PPSSignatureViewController * ppsSignatureViewController = [[PPSSignatureViewController alloc] initWithNibName: Zero Bundle: Zero Document ViewCont Roller: self] autorelease]; ppsSignatureViewController.modalPresentationStyle = UIModalPresentationFullScreen; [Self-present ViewController: Animated ppsSignatureViewController: None Completed: ^ {printf ("done done !!!"); }]; [Self. Navigation Controller PopWebControllerUnited: Yes]; }   

This is the code that gets executed when the Model View Controller is immediately:

  - (id) initWithNibName: (NSString *) nibNameOrNil bundle : (NSBundle *) nibBundleOrNil DocumentView Controller: (MuDocumentController *) dController {self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; If (self) {EAGLContext * context = [[EAGLContext alloc] initWithAPI: KAAGLLR Andring APIOnsSLS2]; PPSSignatureView * signatureView = [[[PPSSignatureView alloc] initWithFrame: [[UIScreen main screen] border] Reference: Reference] Autorescope]; SignatureView.opaque = NO; SignatureView.backgroundColor = [UIColor clear collar]; UIGraphicsBeginImageContext (dController.view.bounds.size); [DController.view DrewHairActirector: after dController.view.boundsScreenUpdates: Yes]; UIImage * image = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); UIImageView * backView = [[UIImageView alloc] initWithImage: Image]; SignatureView.frame = backView.bounds; UIButton * finishSignatureButton = [UIButton ButtonType: UIButtonTypeRoundedRect]; [Finish Signboard Button addTarget: Self-action: @Selector (Android sign-in button pressed :) Control events: UIControlEventTouchUpInside]; [Finnish Signboard Button Seththil: @ State for "Salvagea Seminetu": UIContolstadt Normal]; finishSignatureButton.frame = CGRectMake (signatureView.frame.size.width - 210, signatureView.frame.size.height - 50, 200, 40.0); FinishSignatureButton.backgroundColor = [UIColor white color]; [BackView addSubview: End Signboard Button]; Self.view = backView; Self.view.backgroundColor = [UIColor clear collar]; [BackView release]; [Finish signboard button release]; [Signature release release]; [Image release]; } Healthy return; }   

And finally it is started by the ending code. Signboard Button:

  - Finish (zero) sign-in button Button: ID sender {printf ("DOne"); [Self. Presenter visual controller Dismiss ViewController Committed: Yes Completed: Zero]; }   

I should know what I am doing wrong? I'm a noob on Objective-C programming. I tried to dismiss this scene in several ways, none of them succeeded ... Besides, I do not know what I'm doing is correct and if the order is okay It seems that in the order of operation the signature is the case of the init method of the visual controller. Any kind of help would be greatly appreciated.

The biggest problem is that I am looking for:

  See Self = backView;   

You are trying to change the visual property of your view controller with UIImageView - this is not right. The property of the visual controller should not be tampered in this way. You should add this subview to it, it should not be completely replaced. Your application is trying to implement the view controller's view on a method (setEnableSetNeedsDisplay :) (which I believe to be), because of the example of UIImageView Alternatively, you are getting an exception because UIImageView does not apply this method.

Instead, do something like this:

  [Self.view addSubview: backView];   

Note that you can see any other subviews in this form, so there is no need to have a subviewview of your button image, but it can be a direct subview of view controller See.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -