为多个视图展开segue

时间:2014-08-09 11:54:36

标签: ios objective-c segue

我正在使用Xcode中的应用程序,使用模态segues向前导航并使用展开segue返回到上一个视图以及主视图。然而,当我打开模拟器时,segue只是不工作,没有显示错误,我使用了与Apple待办事项列表教程中使用相同的方法解开segue,所以不确定为什么这不起作用

以下是我想要放松的其中一个视图的.h文件:

#import <UIKit/UIKit.h>

@interface XYZBonBonoftheDayViewController : UIViewController
@property (strong, nonatomic) IBOutlet UIWebView *BBoD;

- (IBAction)unwindBBoD:(UIStoryboardSegue *)segue;


@end

以下是来自同一视图的我的.m文件:

#import "XYZBonBonoftheDayViewController.h"

@interface XYZBonBonoftheDayViewController ()

@end

@implementation XYZBonBonoftheDayViewController

- (IBAction)unwindBBoD:(UIStoryboardSegue *)segue
{

}
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}
@end

如果有人可以提供帮助,这将非常有帮助!在此先感谢:)

0 个答案:

没有答案
相关问题