【问题标题】:how to dismiss my current view如何关闭我当前的视图
【发布时间】:2010-06-15 19:48:57
【问题描述】:

嗨,我有文本视图,并在其上按一个按钮移动到主视图,但我正在使用这对我不起作用..

BackButton.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; BackButton.contentHorizo​​ntalAlignment = UIControlContentHorizo​​ntalAlignmentCenter; [BackButton addTarget:self action:@selector(Back) forControlEvents:UIControlEventTouchUpInside]; [BackButton setBackgroundColor:[UIColor blackColor]]; 我的方法是 -(无效)返回{

我应该在此处放置什么以消除当前视图...... }

【问题讨论】:

    标签: iphone view hide


    【解决方案1】:

    试试

    [self removeFromSuperview];
    

    【讨论】:

      猜你喜欢
      • 2021-05-21
      • 1970-01-01
      • 2019-05-30
      • 1970-01-01
      • 2011-08-17
      • 1970-01-01
      • 1970-01-01
      • 2014-10-03
      • 1970-01-01
      相关资源
      最近更新 更多