| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // 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.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
|