2017-08-03

获取应用程序委托
FKAppDelegate* appDelegate = [UIApplication shareApplication].delegate

2017-08-03

(__bridge CFMutableStringRef)

2017-08-20

    NSBundle *buddle = [NSBundle bundleWithPath:@"你的bundle文件存放路径"];
    [buddle load];//这一步必须执行,否则buddle无效

2018-05-06

[self.navigationController popToRootViewControllerAnimated:YES];跳转到最顶层。

2018-09-05

过期限制访问代码。

NSInteger* _cbId = [paramDict integerValueForKey:@"cbId" defaultValue:0];
    
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
    NSDate *date = [dateFormatter dateFromString:@"2018-09-06 9:50:00"];
    NSDate *now = [NSDate date];
    NSComparisonResult result3 = [date compare:now];
    if(result3==NSOrderedAscending){
        if (_cbId > 0) {
            NSDictionary *ret = @{@"code":@(-1), @"msg":@"模块过期"};
            [self sendResultEventWithCallbackId:_cbId dataDict:ret errDict:nil doDelete:YES];
        }
        return;
    }

 

相关文章:

  • 2022-01-01
  • 2021-08-12
  • 2021-10-09
  • 2019-03-05
  • 2022-02-12
猜你喜欢
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
相关资源
相似解决方案