![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
一棵树uu
且行
展开
-
iOS - 关于allocWithZone
@interface LoginManager : (NSObject)+(LoginManager *)sharedLoginManager;(1)不使用GCDstatic LoginManager *sharedLoginManager;@implementation LoginManager+ (LoginManager *)sharedLoginMa原创 2017-06-27 09:15:26 · 229 阅读 · 0 评论 -
iOS - swift 桥接方法
1.创建oc桥接文件2.配置桥接文件路径3.在桥接文件中导入需要的oc头文件4.在CV.m中使用到了APPdelegate.h头文件需要在build setting (搜索packaging)将defines module 设置YESProduct Module Name 改为工程名5.编译项目会自动生成 工程名-swift.h 文件,该文件不可见,不可手动创建6.在原创 2017-06-14 17:02:17 · 449 阅读 · 0 评论 -
iOS截图
-(void)saveHistory{ UIImage *image = [self captureImageFromView:self.view]; ALAssetsLibrary *library = [ALAssetsLibrary new]; NSData *date = UIImageJPEGRepresentation(image, 1.0); [l原创 2016-12-27 13:36:38 · 287 阅读 · 0 评论