我有一个drawRect,使时间轴有点像iCal.我使用for循环沿滚动视图写入时间.我想知道A)是否是一种确定用户是否在系统设置中选择了12或24小时时钟的方法,以及B)是否有更有效的方式来更改时间标签,然后每次通过调用'if'查询'for'循环.干杯
我正在尝试分配24 hour格式,UIDATEPICKERVIEW但我并不完全想要实现它.
在我的view.h文件中
@property(nonatomic,retain) IBOutlet UIDatePicker *picker_alarm;
Run Code Online (Sandbox Code Playgroud)
在我的view.m文件中
picker_alarm.date=[NSDate date];
Run Code Online (Sandbox Code Playgroud)
在我的.xib文件中
我已经在viewcontroller 中将uidatepicker及其Mode属性设置为Time.
