我正在尝试制作,当按下按钮时,它将转到下一页这里是代码,但没有发生任何事情。我放了断点以查看它是否到达那里并且确实到达了那里。在某些时候它正在工作,然后神奇地发生了一些事情,现在它不再工作了。任何帮助都感激不尽。
//
// MainViewController.m
// SimpleApp
//
// Created by Ruslan on 1/28/13.
// Copyright (c) 2013 Company. All rights reserved.
//
#import "MainViewController.h"
#import "AppDelegate.h"
#import "EditViewController.h"
@interface MainViewController ()
@end
@implementation MainViewController
// Call this when take photo button is pressed
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
// Show Camera
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
// Call this when ipmport button is pressed
-(IBAction)importButton:(id)sender
{
EditViewController *editPage = [[EditViewController alloc] initWithNibName:@"EditViewController" bundle:nil];
[self.navigationController pushViewController:editPage animated:(YES)];
// EditViewController *editPage = [[EditViewController alloc] initWithNibName:@"EditViewController" bundle:nil];
// [self.navigationController pushViewController:editPage animated:(YES)];
}
@end