大家好我在类问题的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