15 UIButton *cancelButton;
21 - (instancetype) initWithDelegate:(
id<Z6MenuApprovalDelegate>) delegate
35 - (void) appear:(CGRect)bound
37 [
self setBackgroundColor:[UIColor brownColor]];
40 cancelButton = [[UIButton alloc] initWithFrame:cancelButtonFrame];
41 [cancelButton setTitle:@"clear" forState:UIControlStateNormal];
42 [cancelButton addTarget:self action:@selector(clickedCancel) forControlEvents:UIControlEventTouchUpInside];
43 [
self addSubview:cancelButton];
46 CGRect approvalButtonFrame = CGRectMake(bound.size.width/2 + 2, 2.0, bound.size.width/2 - 8,
makeMealBarViewHeight - 4.0);
47 approvalButton = [[UIButton alloc] initWithFrame:approvalButtonFrame];
48 [approvalButton setTitle:@"Bravo" forState:UIControlStateNormal];
49 [approvalButton addTarget:self action:@selector(clickedApproval) forControlEvents:UIControlEventTouchUpInside];
50 [
self addSubview:approvalButton];
58 NSLog(
@"MenuApprovalBar.clickedCancel");
59 [menuApprovalDelegate didTapClearFooter];
64 NSLog(
@"MenuApprovalBar.clickedApproval");
65 [menuApprovalDelegate didTapBravoFooter];
id< U7ParamEditControlDelegate > delegate