UIButton动作拖曳ViewController

时间:2014-12-30 14:31:45

标签: ios uibutton xcode6 action viewcontroller

大家好我在类问题的ViewController 1中有一个按钮。 这个类有5个ViewController

用户在第一个视图中单击按钮,但操作发生在最后一个视图+ segue

这是可能的,我可以创建另一个类但不起作用这是我的代码

#import "Questions.h"

@interface Questions ()

@property (strong, nonatomic) IBOutlet UIButton *A1;
@property (strong, nonatomic) IBOutlet UIButton *A2;


@end
@implementation Questions

- (void)viewDidLoad {
[super viewDidLoad];//also tried this
  if (_A1 .selected= YES) {
    _A2.alpha=1;
 }


}
 //I tried this but not work  A2 button is at the Last View
- (IBAction)Q1:(id)sender {
   _A2.alpha=1;
}

@end

0 个答案:

没有答案