// // InvitationAnswerPopupView // kneet // // Created by Jason Lee on 6/15/15. // Copyright (c) 2015 ntels. All rights reserved. // #import "JDObject.h" #import "CustomLabel.h" #import "CustomCheckBox.h" #import "InvitationAnswerPopupView.h" #import "LoginModel.h" @implementation CustomDatePicker - (void)awakeFromNib { self.layer.backgroundColor = [UIColor clearColor].CGColor; } - (void)addSubview:(UIView *)view { if (!_changed) { _changed = YES; [self setValue:kUITextColor02 forKey:@"textColor"]; } [super addSubview:view]; } @end @interface InvitationAnswerPopupView () { } @end @implementation InvitationAnswerPopupView - (id)initFromNib { for (UIView *view in [CommonUtil nibViews:@"InvitationAnswerPopupView"]) { if ([view isKindOfClass:[InvitationAnswerPopupView class]]) { self = (InvitationAnswerPopupView *)view; //XIB의 경우, 현재 화면 사이즈로 맞춰줘야 함. self.frame = [UIScreen mainScreen].bounds; _datePicker.date = [NSDate date]; [self.imgTitleBar setImage:[UIImage imageNamed:@"img_popup_bg_head"]inset:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnConfirm setBackgroundImage:[UIImage imageNamed:@"img_popup_btn_right"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnConfirm setBackgroundImage:[UIImage imageNamed:@"img_popup_btn_right_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnCancel setBackgroundImage:[UIImage imageNamed:@"img_popup_btn_left"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnCancel setBackgroundImage:[UIImage imageNamed:@"img_popup_btn_left_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnConfirm setTitle:NSLocalizedString(@"확인", @"확인") forState:UIControlStateNormal]; [self.btnCancel setTitle:NSLocalizedString(@"취소", @"취소") forState:UIControlStateNormal]; } } return self; } - (void)didMoveToSuperview { } - (NSString *)selectedDate { return [CommonUtil stringFromDate2:_datePicker.date]; } - (void)btnConfirmTouched:(id)sender { //validate [super btnConfirmTouched:sender]; } @end