异常时间段提示,及可删除
This commit is contained in:
@@ -260,6 +260,10 @@
|
||||
NSString*shiString=@"";
|
||||
NSString*fenString=@"";
|
||||
UInt64 shi =strtoul([[hexString substringWithRange:NSMakeRange(0, 2)] UTF8String], 0, 16);
|
||||
if(shi>23)
|
||||
{
|
||||
[[UIApplication sharedApplication].delegate.window makeToast:@"数据异常,请删除或重新设置"];
|
||||
}
|
||||
|
||||
shiString=[NSString stringWithFormat:@"%llu",shi];
|
||||
if ([shiString isEqualToString:@"0"]) {
|
||||
|
||||
+19
@@ -795,12 +795,31 @@ static NSString *setTimerflag = @"SetTimerCell";
|
||||
NSLog(@"stat %@ end %@",startArr,endArr);
|
||||
if (startArr.count == 2 && endArr.count == 2) {
|
||||
NSInteger row1 = [[_mydatepicView.dataArr objectAtIndex:0] indexOfObject:startArr[0]];
|
||||
if (row1==NSNotFound)
|
||||
{
|
||||
row1=0;
|
||||
}
|
||||
[_mydatepicView.picView selectRow:row1 inComponent:0 animated:NO];
|
||||
NSInteger row2 = [[_mydatepicView.dataArr objectAtIndex:1] indexOfObject:startArr[1]];
|
||||
if (row2==NSNotFound)
|
||||
{
|
||||
row2=0;
|
||||
}
|
||||
|
||||
[_mydatepicView.picView selectRow:row2 inComponent:1 animated:NO];
|
||||
NSInteger row3 = [[_mydatepicView.dataArr objectAtIndex:2] indexOfObject:endArr[0]];
|
||||
if (row3==NSNotFound)
|
||||
{
|
||||
row3=0;
|
||||
}
|
||||
|
||||
[_mydatepicView.picView selectRow:row3 inComponent:2 animated:NO];
|
||||
NSInteger row4 = [[_mydatepicView.dataArr objectAtIndex:3] indexOfObject:endArr[1]];
|
||||
if (row4==NSNotFound)
|
||||
{
|
||||
row4=0;
|
||||
}
|
||||
|
||||
[_mydatepicView.picView selectRow:row4 inComponent:3 animated:NO];
|
||||
|
||||
_mydatepicView.startString = startArr[0];
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
// CFShow((__bridge CFTypeRef)(infoDic));
|
||||
NSString *app_Version=[infoDic objectForKey:@"CFBundleShortVersionString"];
|
||||
NSLog(@"app_Version%@",app_Version);
|
||||
app_Version=@"4.7.15";
|
||||
app_Version=@"4.7.16";
|
||||
NSString *versionStr = [NSString stringWithFormat:@"v%@",app_Version];
|
||||
NSString *buildVersion = [infoDic objectForKey:@"CFBundleVersion"];
|
||||
if (buildVersion.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user