iOS
遇见I你
相遇即是缘,点下关注 Thanks♪(・ω・)ノ
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS屏幕截屏
.h文件 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (ImageScreenShot) // 截屏View - (UIImage *)imageScreenShot; @end NS_ASSUME_NONNULL_END .m文件 #import "UIView+ImageScreenShot.h" @implementation UIView (ImageScreenShot) - (UIIm原创 2020-12-21 16:37:47 · 217 阅读 · 1 评论 -
iOS真机调试包
真机调试包 下载地址 提取密码:miv8 下载调试包,拷贝到对应目录下,重启Xcode /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport原创 2020-12-21 16:33:05 · 277 阅读 · 0 评论 -
iOS 如何将ViewController写成单例
废话不多说直接上代码: .h文件代码 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ManagerViewController : UIViewController /** 单利创建 - Method */ + (instancetype)sharedManager; /** 单利销毁 - Method */ - (void)removeSharedManager; @end NS_ASSUME_原创 2020-12-21 16:28:24 · 687 阅读 · 0 评论 -
iOS tableView 刷新后防止滚动
添加数据刷新后,防止tableview滑动(防止reload滑动) - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { return 0.0000001f; } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {原创 2020-12-21 16:24:23 · 665 阅读 · 0 评论 -
iOS在View上显示AlertController
#### 原理: > 1.创建一个 ViewController 对象为 tempVc ; > 2.将 tempVc.view 添加到需显示 AlertController 的 View 上 ; > 3.用 presentViewController: animated: completion: 显示 ; #### 实现: ```` UIAlertController *alvc = [UIAlertController alertControllerWithTitle:@...原创 2020-12-21 16:14:56 · 370 阅读 · 0 评论
分享