I am creating a simple app that lets the user see movies after clicking the button. The first screen you see is the main menu that has 2 buttons, one of them sends the user to a sub-view, which I codify in the IBAction method:
ViewConroller * nextView = [ [ViewController alloc] initWithNibName: @ "NextMenu" bundle neil]; [Self.view addSubview: [see next view]]; [See next release]; This part is fine, except that the sub-view shows 20 px times below the previous scene. I looked around and none of the solutions worked for me. This is not the main problem even on the sub view, whenever I click on a button, the app taps. The IBAction method breaks before executing a line within the method. Here, in the goBack IBAction method, I am trying to dismiss the subview and return to the main menu:
[self.view removeFromSuperview]; My connections are correct in my XIB files and everything is in order. Buttons are not just executing. I'm not sure what to add to its sub-view or what to do. I have searched many places around Google and this website, but I still can not get the solution < P> Here's an example of an error:
Exclude the app due to no exceptions 'NSInvalidArgumentException, reason:' - [nd nsppt back:]: Unknown sender sent for example 0x5640b70 ' Hope you guys my item Can it be, it's really frustrating, I feel like I have tried everything thanks to your time. I know that I need to provide more information. Thanks again.
view controller * nextView = [[ViewController alloc] initWithNibName: @ "Next menu" bundle Indigo]; View Controller has been created.
[self.view addSubview: [see next scene]]; Added value of self.view nextView.view because this subview is retained and (NB has passed it to next. View is kept not value nextView itself) [nextView release]; Next view is issued and it is immediately removed (because it is never kept by anyone) Trying to send a message to cancel the button object - & gt; The behavior is undefined, in your case, any other object (or some object that looks like an object) and it does not seem to mean that goBack: means. This is the reason why you should not search for a wheel with your own navigation (especially if you are new to this) instead using UINavigationController Please.
Comments
Post a Comment