zoukankan      html  css  js  c++  java
  • IOS开发之旅(一)NSDatePicker

    一、Agenda

      1、NSDate类

        1>NSDate是系统一个日期,时间类

        2>就是返回当前的日期,时间

        3>+(id)date;

        4>返回未来secs秒后的日期,时间

        5>+(id)dateWithTimeIntervalSinceNow:(NSTimeInterval)secs;

        6>distantFuture/distantPast

          a>未来永远达不到的时间

          b>+(id)distantFuture;

          c>4001-01-01 00:00:00 +0000(设置一个未来永远达不到的时间)

          d>过去的时间

          e>+(id)distantPast;

          f>0001-01-01 00:00:00 +0000

      2、NSDateFormatter

        

      3、NSCalendar  

      

      4、UIDatePicker

      UIDatePicker事件处理

        1>UIControlEventValueChanged

        2>UIDatePicker每次值改变的时候就会处理该事件(连线的方式)

        3>事件处理方式

          [datePicker addTarget:self

             action:@selector(dateChanged:)

             forControlEvents:UIControlEventValueChanged];

      

  • 相关阅读:
    .net core2.2
    9_山寨系统调用 SystemCallEntry
    7_API调用
    8_InlineHook
    6_再次开中断STI的正确姿势
    5_中断现场下
    4_中断现场中
    3_中断现场上
    2_多核复杂性
    1_中断提权
  • 原文地址:https://www.cnblogs.com/caishuhua226/p/2843154.html
Copyright © 2011-2022 走看看