zoukankan      html  css  js  c++  java
  • 两段奇葩的 代码,

    case1://

                {

                    NSDate *now=[NSDate new];

                    int period = [self changeToMinisecond:item.time];

                    period = [self changeToMinisecond:1234];

                    if (period < 0) {

                        continue;

                    }

                    notification.fireDate = [now dateByAddingTimeInterval:period];

                    notification.alertBody = [NSString stringWithFormat:@"药提醒:%@%@",item.drugName,item.intro];

                    info = @{@"content":[NSString stringWithFormat:@"%@%@",item.drugName,item.intro],@"title":@"药提醒"};

     

                    break;

     

                }

     

     

    case2://day

                        {

                            NSDate *now=[NSDate new];

                            int period = [self changeToMinisecond:item.time];

                            period = [self changeToMinisecond:period];

     

                            if (period < 0) { 

                                continue;

                            }

                            notification.fireDate = [now dateByAddingTimeInterval:period];

                            break;

                        }

  • 相关阅读:
    批量修改图片尺寸
    批量修改文件名
    C++ 字符串的编码
    Hanoi问题
    农夫过河问题
    遍历文件夹中所有图片
    仿射变换和透射变换
    程序局部性原理
    14年年底的学习计划
    linux之Vim使用
  • 原文地址:https://www.cnblogs.com/guligei/p/3177235.html
Copyright © 2011-2022 走看看