Jobs

Results 51 issues of 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 代码这样写的话,在真机运行不报错,模拟器报错。怎么解决? ![image](https://github.com/tigerAndBull/TABAnimated/assets/13795605/13414298-0c1b-4a67-92b7-319caead7120) ![image](https://github.com/tigerAndBull/TABAnimated/assets/13795605/cf72ae8c-248a-45f3-ad40-4a3392d0f1a7)

目前是水平切换。我希望垂直切换

#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-implementations" /// 决定当前界面是否开启自动转屏,如果返回NO,后面两个方法也不会被调用,只是会支持默认的方向 - (BOOL)shouldAutorotate { return YES; } #pragma clang diagnostic pop

比如HXCustomCameraViewController.bottomView

![image](https://github.com/user-attachments/assets/a70583cd-d098-4261-ad62-6357bd5dc290) 划到某些月份的时候,有偏移

![image](https://github.com/user-attachments/assets/6ecaffc6-dbac-43ef-8dc8-6227524fda15) 建议用如下方式导入头文件: #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