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];

     

     

  • 相关阅读:
    java 实验五保存网页到本地
    Codeforces Round #485 (Div. 2)F. AND Graph
    算法设计分析实验三——贪心求最小生成树
    D. XOR-pyramid Codeforces Round #483 (Div. 2) dp
    C. Finite or not? Codeforces Round #483 (Div. 2)
    Educational Codeforces Round 44 F. Isomorphic Strings
    Educational Codeforces Round 44 (Rated for Div. 2)+E. Pencils and Boxes+树状数组
    BZOJ 1012 [JSOI2008]最大数maxnumber
    BZOJ 1207 [HNOI2004]打鼹鼠(简单dp)
    POJ 3067 Japan(树状数组求逆序对)
  • 原文地址:https://www.cnblogs.com/shifu/p/6232201.html
Copyright © 2011-2022 走看看