//
// CustomDateTimePicker.h
// iBLTest
//
// Created by dumbbellyang on 9/29/10.
// Copyright 2010 FOXCONN CMMSG ITSS. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CustomDateTimePicker : UIPickerView <UIPickerViewDelegate, UIPickerViewDataSource>{
int componentsCount;
NSString *dateSeparator;
NSString *timeSeparator;
NSString *dateTimeSeparator;
NSInteger textAlignment;
NSInteger fontSize;
BOOL isShowChinese;
BOOL isShowYear;
int yearComponentIdx;
NSMutableArray *yearData;
BOOL isShowWeek;
int weekComponentIdx;
NSMutableArray *weekData;
BOOL isShowWeekStart;
int weekStartComponentIdx;
NSMutableArray *weekStartData;
BOOL isShowWeekEnd;
int weekEndComponentIdx;
NSMutableArray *weekEndData;
BOOL isShowStarSign;
int starSignComponentIdx;
NSMutableArray *starSignData;
BOOL isShowStarSignStart;
int starSignStartComponentIdx;
NSMutableArray *starSignStartData;
BOOL isShowStarSignEnd;
int starSignEndComponentIdx;
NSMutableArray *starSignEndData;
BOOL isShowMonth;
int monthComponentIdx;
NSMutableArray *monthData;
BOOL isShowDay;
int dayComponentIdx;
NSMutableArray *dayData;
BOOL isShowWeekDay;
int weekDayComponentIdx;
NSMutableArray *weekDayData;
BOOL isShowHour;
int hourComponentIdx;
NSMutableArray *hourData;
BOOL isShowMinute;
int minuteComponentIdx;
NSMutableArray *minuteData;
BOOL isShowSecond;
int secondComponentIdx;
NSMutableArray *secondData;
int currentYear;
int currentWeek;
int currentStarSign;
int currentMonth;
int currentDay;
int currentHour;
int currentMinute;
int currentSecond;
int selectedYear;
int selectedWeek;
int selectedStarSign;
int selectedMonth;
int selectedDay;
int selectedHour;
int selectedMinute;
int selectedSecond;
UIView *showView;
}
@property (nonatomic, readwrite) int componentsCount;
@property (nonatomic, retain) NSString *dateSeparator;
@property (nonatomic, retain) NSString *timeSeparator;
@property (nonatomic, retain) NSString *dateTimeSeparator;
@property (nonatomic, readwrite) NSInteger textAlignment;
@property (nonatomic, readwrite) NSInteger fontSize;
@property (nonatomic, readwrite) BOOL isShowChinese;
@property (nonatomic, readwrite) int currentYear;
@property (nonatomic, readwrite) int currentWeek;
@property (nonatomic, readwrite) int currentStarSign;
@property (nonatomic, readwrite) int currentMonth;
@property (nonatomic, readwrite) int currentDay;
@property (nonatomic, readwrite) int currentHour;
@property (nonatomic, readwrite) int currentMinute;
@property (nonatomic, readwrite) int currentSecond;
@property (nonatomic, readwrite) int selectedYear;
@property (nonatomic, readwrite) int selectedWeek;
@property (nonatomic, readwrite) int selectedStarSign;
@property (nonatomic, readwrite) int selectedMonth;
@property (nonatomic, readwrite) int selectedDay;
@property (nonatomic, readwrite) int selectedHour;
@property (nonatomic, readwrite) int selectedMinute;
@property (nonatomic, readwrite) int selectedSecond;
@property (nonatomic, readwrite) BOOL isShowYear;
@property (nonatomic, readwrite) int yearComponentIdx;
@property (nonatomic, retain) NSMutableArray *yearData;
@property (nonatomic, readwrite) BOOL isShowWeek;
@property (nonatomic, readwrite) int weekComponentIdx;
@property (nonatomic, retain) NSMutableArray *weekData;
@property (nonatomic, readwrite) BOOL isShowWeekStart;
@property (nonatomic, readwrite) int weekStartComponentIdx;
@property (nonatomic, retain) NSMutableArray *weekStartData;
@property (nonatomic, readwrite) BOOL isShowWeekEnd;
@property (nonatomic, readwrite) int weekEndComponentIdx;
@property (nonatomic, retain) NSMutableArray *weekEndData;
@property (nonatomic, readwrite) BOOL isShowStarSign;
@property (nonatomic, readwrite) int starSignComponentIdx;
@property (nonatomic, retain) NSMutableArray *starSignData;
@property (nonatomic, readwrite) BOOL isShowStarSignStart;
@property (nonatomic, readwrite) int starSignStartComponentIdx;
@property (nonatomic, retain) NSMutableArray *starSignStartData;
@property (nonatomic, readwrite) BOOL isShowStarSignEnd;
@property (nonatomic, readwrite) int starSignEndComponentIdx;
@property (nonatomic, retain) NSMutableArray *starSignEndData;
@property (nonatomic, readwrite) BOOL isShowMonth;
@property (nonatomic, readwrite) int monthComponentIdx;
@property (nonatomic, retain) NSMutableArray *monthData;
@property (nonatomic, readwrite) BOOL isShowDay;
@property (nonatomic, readwrite) int dayComponentIdx;
@property (nonatomic, retain) NSMutableArray *dayData;
@property (nonatomic, readwrite) BOOL isShowWeekDay;
@property (nonatomic, readwrite) int weekDayComponentIdx;
@property (nonatomic, retain) NSMutableArray *weekDayData;
@property (nonatomic, readwrite) BOOL isShowHour;
@property (nonatomic, readwrite) int hourComponentIdx;
@property (nonatomic, retain) NSMutableArray *hourData;
@property (nonatomic, readwrite) BOOL isShowMinute;
@property (nonatomic, readwrite) int minuteComponentIdx;
@property (nonatomic, retain) NSMutableArray *minuteData;
@property (nonatomic, readwrite) BOOL isShowSecond;
@property (nonatomic, readwrite) int secondComponentIdx;
@property (nonatomic, retain) NSMutableArray *secondData;
@property (nonatomic, retain) UIView *showView;
- (NSString*)getCurrentLanguage;
- (NSString*)getCurrentLocale;
- (void)initStarSign;
- (void)initCurrentDateData;
- (void)selectedCurrentDate;
- (void)clearAllComponents;
- (void)show;
- (NSString*)getFormatNumber:(NSInteger)curNumber;
- (NSInteger)getWeekDay:(NSDate*)curDate;
- (NSInteger)getWeekDayForMonth:(NSInteger)curYear CurMonth:(NSInteger)curMonth;
- (NSInteger)getLastWeekInYear:(NSInteger)curYear;
- (NSDate*)getWeekStartDate:(NSInteger)curYear CurWeek:(NSInteger)curWeek;
- (NSDate*)getWeekEndDate:(NSInteger)curYear CurWeek:(NSInteger)curWeek;
- (void)resetWeekData:(NSInteger)curYear;
- (NSInteger)findDaysInYear:(NSInteger)curYear;
- (NSInteger)findDaysInMonth:(NSInteger) monthNum CurYear:(NSInteger)curYear;
- (void)resetDayData:(NSInteger)totalDays WeekDay:(NSInteger)weekDay;
- (NSInteger)getDatePartFromDate:(NSDate*)curDate PartFormat:(NSString*)partFormat;
- (NSInteger)getYearFromDate:(NSDate*)curDate;
- (NSInteger)getWeekFromDate:(NSDate*)curDate;
- (NSInteger)getMonthFromDate:(NSDate*)curDate;
- (NSInteger)getDayFromDate:(NSDate*)curDate;
- (NSInteger)getHourFromDate:(NSDate*)curDate;
- (NSInteger)getMinuteFromDate:(NSDate*)curDate;
- (NSInteger)getSecondFromDate:(NSDate*)curDate;
- (NSInteger)getStarSignFromDate:(NSDate*)curDate;
- (void)setPickerFormat:(NSString*)curFormat;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
自定义的 Date Time Picker 控件
共50个文件
pbxbtree:8个
m:5个
hmap:5个
4星 · 超过85%的资源 需积分: 48 111 下载量 51 浏览量
2010-10-16
18:51:17
上传
评论
收藏 470KB 7Z 举报
温馨提示
扩展UIPickerView实现自定义CustomDateTimePicker,可实现UIDateTimePicker不能实现的只显示年月、显示年周和同时显示年月日时分秒的日期时间格式。
资源推荐
资源详情
资源评论
收起资源包目录
customPicker.7z (50个子文件)
customPicker
customPicker.xcodeproj
project.pbxproj 11KB
dumbbellyang.mode1v3 39KB
dumbbellyang.pbxuser 5KB
customPicker_Prefix.pch 193B
._build 4KB
MainWindow.xib 20KB
main.m 368B
build
customPicker.build
customPicker.pbxindex
decls.pbxbtree 147KB
cdecls.pbxbtree 147KB
symbols0.pbxsymbols 643KB
imports.pbxbtree 8KB
subclasses.pbxbtree 2KB
refs.pbxbtree 112KB
files.pbxbtree 3KB
strings.pbxstrings
control 256KB
strings 312KB
pbxindex.header 24B
protocols.pbxbtree 2KB
categories.pbxbtree 1KB
._customPicker.pbxindex 4KB
Debug-iphonesimulator
customPicker.build
customPicker.hmap 2KB
Objects-normal
i386
customPicker.LinkFileList 561B
main.o 6KB
CustomDateTimePicker.o 188KB
customPickerAppDelegate.o 47KB
customPickerViewController.o 45KB
customPicker.dep 3KB
customPicker~.dep 3KB
build-state.dat 25KB
customPicker-project-headers.hmap 971B
customPicker-all-target-headers.hmap 793B
customPicker-generated-files.hmap 121B
customPicker-own-target-headers.hmap 793B
build-state~.dat 23KB
._customPicker.build 4KB
Debug-iphonesimulator
customPicker.app
MainWindow.nib 1KB
Info.plist 611B
customPicker 101KB
PkgInfo 8B
customPicker.app.dSYM
Contents
Resources
DWARF
customPicker 141KB
Info.plist 596B
customPicker-Info.plist 909B
Classes
._customPickerViewController.h 4KB
CustomDateTimePicker.m 36KB
customPickerViewController.m 4KB
customPickerViewController.h 282B
CustomDateTimePicker.h 8KB
customPickerAppDelegate.h 511B
customPickerAppDelegate.m 3KB
._customPickerViewController.m 4KB
共 50 条
- 1
dumbbellyang
- 粉丝: 62
- 资源: 106
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页