2019-05-10 星期五 3

2019-05-10  本文已影响0人  老布威利斯
void caculateGoldenRatio(){
    static double number = 2;
    number = 1 / number + 1;
    printf("%lf\n",number);
    caculateGoldenRatio();
}

参考链接:https://www.mathsisfun.com/numbers/golden-ratio.html

    Class class = NSClassFromString(target);
    SEL selector = NSSelectorFromString(action);
    if ([class respondsToSelector:selector]) {
        void *(*func)(id, SEL) = (void *)[class methodForSelector:selector];
        void *returnValue = func(class,selector);
    }
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
//write the code here
#pragma clang diagnostic pop

参考链接:https://www.jianshu.com/p/84a934fe6f86

上一篇下一篇

猜你喜欢

热点阅读