你的位置:首页 > 软件开发 > 操作系统 > UIView上的按钮跳转到一个控制器UIViewController上去

UIView上的按钮跳转到一个控制器UIViewController上去

发布时间:2016-01-31 03:00:04
我现在有一个UIControllerView 里面addView了一个UIView,我在点击UIView的时候转到另一个UIControllerView,按上面的导航条上面的返回按钮返回第一个UIControllerView,在那个UIView里怎么用pushViewContro ...

我现在有一个UIControllerView 里面addView了一个UIView,我在点击UIView的时候转到另一个UIControllerView,按上面的导航条上面的返回按钮返回第一个UIControllerView,在那个UIView里怎么用pushViewController

在UIView里发送消息

[[NSNotificationCenter defaultCenter] postNotificationName:@"push" object:nil];

 

在父类控制器接收消息并

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pushOne) name:@"push" object:nil];

-(void)pushOne

{

    YYCSettingController *setting=[[YYCSettingController alloc]init];

        [self.navigationController pushViewController:setting animated:YES];

}

 

发送消息

原标题:UIView上的按钮跳转到一个控制器UIViewController上去

关键词:ie

ie
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。