zoukankan      html  css  js  c++  java
  • DatePicker 设置字体颜色

     

        [self.datePicker setValue:RGBCOLOR(204, 204, 204) forKey:@"textColor"];

     

    // 默认选中的颜色 为黑色 修改方法如下

    //通过NSSelectorFromString获取setHighlightsToday方法

        SEL selector= NSSelectorFromString(@"setHighlightsToday:");

        //创建NSInvocation

        NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[UIDatePicker instanceMethodSignatureForSelector:selector]];

        BOOL no = NO;

        [invocation setSelector:selector];

        //setArgument中第一个参数的类picker,第二个参数是SEL

        [invocation setArgument:&no atIndex:2];

        //invocation执行setHighlightsToday方法

        [invocation invokeWithTarget:self.datePicker];

     

     

  • 相关阅读:
    Nginx设置支持Https
    windows git bash bash: xxx: command not found
    无法打开arxiv.org的解决办法
    divmod的妙用
    py2 to py3
    keras模型可视化
    python中[-1]、[:-1]、[::-1]、[n::-1]使用方法
    ubuntu “快捷方式”
    tf.keras遇见的坑:Output tensors to a Model must be the output of a TensorFlow `Layer`
    ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
  • 原文地址:https://www.cnblogs.com/shifu/p/6232201.html
Copyright © 2011-2022 走看看