```
#import "OtherController.h"
#import "ViewController.h"
ViewController *viewController;

@interface OtherController ()

@end

@implementation OtherController

- (void)viewDidLoad
{
    [super viewDidLoad];
    viewController = [[ViewController alloc] initWithNibName:@"viewController" bundle:nil];
}

- (IBAction)levelNormal{
    viewController.level = 1;
    [self.navigationController pushViewController:viewController animated:YES];

}

```

I have tried various tips i read on stackoverflow though none of them seemed to work out correctly. I am trying to open a View on Button-click and when the View opens, depending on which button was pressed the View should have a different "level" number. I do not have a NavigationController as far as i'm concerned. I have read different posts about pasting code into the AppDelegate class, though that also did not work out for me. When I debug the pressing of the button, I see that the value is changed but nothing else happens when it tries to change the view.

Here's the ViewController header-file:

```
#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIButton *resumeButton;
@property (weak, nonatomic) IBOutlet UIImageView *opacityScreen;
@property (weak, nonatomic) IBOutlet UILabel *scoreField;
@property (weak, nonatomic) IBOutlet UIButton *pauseButton;
@property (weak, nonatomic) IBOutlet UIButton *mainMenuButton;
@property (weak, nonatomic) NSTimer * nst;
@property(nonatomic) int level;
@end

```