Bootstrap 3日期时间选择器

时间:2015-12-31 12:12:27

标签: jquery css bootstrap-datetimepicker eonasdan-datetimepicker

我正在为我的项目使用bootstrap 3 datetime picker。日期时间选择器应附加在代码的末尾。输入字段后不应附加。它有效,但没有正确定位。在这种情况下我需要写什么功能?

http://jsfiddle.net/Eonasdan/0Ltv25o8/



 UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.frame = CGRectMake(0,0,60,30);
[button setBackgroundColor:[UIColor yourColor]];
[button setTitleColor:[UIColor yourColor] forState:UIControlStateNormal];
[button setTitle:@"Call Me" forState:UIControlStateNormal];
[button addTarget:self action:@selector(navigateToDiscussionScreen) forControlEvents:UIControlEventTouchUpInside];

UIView *view = [[UIView alloc] initWithFrame:button.bounds];
view.backgroundColor = [UIColor clearColor];
[view addSubview:button];
UIBarButtonItem *logoBtn = [[UIBarButtonItem alloc]initWithCustomView:view];

$('#datetimepicker1').datetimepicker({
 
    
    
});




0 个答案:

没有答案