0
我有UICollectionView和Header.I有textfield和image.I確實嘗試推塞格工作正常。但我需要調用塞格! 任何幫助會感激不能繼續從UICollectionReusableView
Header.h
@interface HeaderRV : UICollectionReusableView
@property (weak, nonatomic) IBOutlet UITextField *searchField;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
- (IBAction)backButton:(id)sender;
@end
Header.m
@implementation HeaderRV
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
- (IBAction)backButton:(id)sender {
if ([self.searchField isEditing]) {
[self.searchField resignFirstResponder];
}
else{
//segue need to be here
}
}
@end