Jobs
Jobs
【你无非是想单例,是对的,但是单例化和销毁是下面这么写的,只有销毁才会调用dealloc,这个时机才会关闭timer】 - (void)dealloc{ NSLog(@"%@",JobsLocalFunc); if (timer) { dispatch_source_cancel(timer); } // [[NSNotificationCenter defaultCenter] removeObserver:self]; } /// 单例化和销毁 +(void)destroySingleton{ static_codeViewOnceToken = 0; static_codeView = nil; } static WMZCodeView *static_codeView = nil; static...
#if __has_include() #import #else #import "TABAnimated.h" #endif 代码这样写的话,在真机运行不报错,模拟器报错。怎么解决?  
https://www.codenong.com/js75ea7e40176d/
目前是水平切换。我希望垂直切换
#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-implementations" /// 决定当前界面是否开启自动转屏,如果返回NO,后面两个方法也不会被调用,只是会支持默认的方向 - (BOOL)shouldAutorotate { return YES; } #pragma clang diagnostic pop
比如HXCustomCameraViewController.bottomView
 划到某些月份的时候,有偏移
找不到AF相关类
 建议用如下方式导入头文件: #if __has_include() #import #elif __has_include("AFNetworking.h") #import "AFNetworking.h" #elif __has_include("AFNetworking-umbrella.h") #import "AFNetworking-umbrella.h" #else #error "AFNetworking header not found" #endif