iOS 问题处理
小胖红
这个作者很懒,什么都没留下…
展开
-
Xcode 14.3 file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xct...
Xcode 14.3 file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xct...原创 2023-05-16 14:29:21 · 2030 阅读 · 0 评论 -
git pull失败问题处理
git pull 失败原创 2022-10-12 15:02:43 · 1446 阅读 · 0 评论 -
textField 金额输入限制(只能数字或者.)
textField金额输入限制(只能数字或者.)原创 2022-08-01 14:44:26 · 417 阅读 · 0 评论 -
iOS 指纹识别/人脸识别登录(ECDSA 加签)
人脸识别/指纹识别登录(ECDSA签名)原创 2022-06-10 15:39:34 · 2775 阅读 · 0 评论 -
YYLabel内容展示(文字 内容 链接(高亮 且可以点击);内容撑起背景的高度)
NSString *strTime = DSStringValue(self.model.CreateTime);// strTime = [strTime stringByReplacingOccurrencesOfString:@"T" withString:@" "]; if (strTime.length > 0) {// NSRange rangeDate = [strTime rangeOfString:@"T"]; sel...原创 2022-01-28 17:51:25 · 1254 阅读 · 0 评论 -
无数据 无网络view
1.无数据.h#import <UIKit/UIKit.h>typedef void(^refreshBlock)(void);@interface STNoDataView : UIView@property (strong, nonatomic) UILabel *detailLabel;@property (nonatomic,strong) UIImageView * imageView;@property (nonatomic, strong) NSLayoutCons原创 2022-01-28 17:45:32 · 844 阅读 · 0 评论 -
给view添加阴影
-(UIView *)vBG{ if (!_vBG) { _vBG = [XWTool viewbackground:Color_White SuperView:self.contentView]; _vBG.layer.cornerRadius = 6; _vBG.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1原创 2022-01-28 17:39:45 · 468 阅读 · 0 评论 -
按钮收展动画
/* 0:默认状态 灰色框 黑色字 灰色箭头(向下) 1:选中状态 红色框 红色字 红色箭头(向下) 2:选中状态 红色框 红色字 红色箭头(向上) 3:失去焦点 灰色框 黑色字 灰色箭头(向下) */-(void)updateWithStatus:(int)status{ if (status == 1) { self.imvArrow.image = ImageNamed(@"ic_arrow_under_red") ;//为了合上也原创 2022-01-28 17:38:12 · 412 阅读 · 0 评论 -
alertview样式3(带输入框 加 减 确认 操作 含键盘遮挡处理)
.h文件#import <UIKit/UIKit.h>NS_ASSUME_NONNULL_BEGIN@interface ENToothIntervalAlertView : UIView@property (nonatomic, copy) void (^sureBlock)(NSString *space);@property (nonatomic, copy) void (^dismissBlock)(void);- (void)show;//定制弹窗- (id)ini原创 2022-01-28 17:35:33 · 953 阅读 · 0 评论 -
alertview 样式 2 (含标题 文字 取消 选中)
.h文件#import <UIKit/UIKit.h>typedef void(^commitBlock)(NSString * code);@interface ENAlertView : UIView- (id)initWithTitle:(NSString *)title contentText:(NSString *)content textAlignment:(NSTextAlignment)textAlignment leftBut原创 2022-01-28 17:32:48 · 1372 阅读 · 0 评论 -
自定义的alert view1( 用tableview实现)
.h文件#import <UIKit/UIKit.h>NS_ASSUME_NONNULL_BEGIN@interface ENCustomBottomTableviewCell : UITableViewCell@property (nonatomic, strong) UILabel *lblContent;+ (ENCustomBottomTableviewCell *)getCellWithTableView:(UITableView *)tableView;/** *原创 2022-01-28 17:30:28 · 587 阅读 · 0 评论 -
多个按钮选中与取消
1.按钮选中不可取消 btn.layer.borderColor = btn.selected?Color_Theme.CGColor:Color_Btn_Border.CGColor; //单选 if (btn.selected) { for (UIButton *btnTemp in self.contentView.subviews) { if ([btnTemp isKindOfClass:[UIButton class]] &&原创 2022-01-28 17:03:34 · 1185 阅读 · 0 评论 -
iOS 15适配
在baseVC 的viewWillAppear 方法中添加如下代码:if (@available(iOS 15.0, *)){ //tableview 下移22 UITableView *tableview = (UITableView *) [self getSubViewWithClassName:@"UITableView" inView:self.view] ; if (tableview) { tableview.sec原创 2021-09-28 10:14:24 · 406 阅读 · 0 评论 -
wkwebview添加进度条
@interface CommonWebVC()<WKUIDelegate,WKNavigationDelegate, NJKWebViewProgressDelegate,WKScriptMessageHandler>@property (nonatomic, strong) WKWebView wvMainWeb;@property (nonatomic)NJKWebViewProgress progressProxy;@property (nonatomic)NJKWebV.原创 2020-12-10 14:39:36 · 500 阅读 · 0 评论 -
“ios14 popToRootViewControllerAnimated 底部tabbar消失”问题处理
ios14 popToRootViewControllerAnimated 底部tabbar消失问题处理解决方法是:在UINavigationController 类重写以下方法: -(NSArray<__kindof UIViewController *> *)popToRootViewControllerAnimated:(BOOL)animated { if (animated) { UIViewController *原创 2020-12-07 16:37:36 · 1607 阅读 · 0 评论 -
app 所需图标尺寸
图标16*16,20*20, 29*29,36*36 ,40*40, 48*48,57 * 57, 58*58 ,60 * 60 , 72*72 ,76 * 76 ,87 * 87 ,80*80, 96*96 ,108*108,120*120 144*144, 152*152,167*167,180*180 192*192 256*256,384*384 ,1024*1024...原创 2018-09-13 11:06:46 · 2594 阅读 · 0 评论 -
升级xcode 10后报错:library not found for -lstdc++.6.0.9 && Multiple command
001 报错 library not found for -lstdc++.6.0.9因为项目中的sdk 需要 lstdc,但是xcode 10 升级后 删除了该文件 所以需要重新导入这些文件即可。点击蓝字下载 libstdc002 Multiple commandShowing Recent Messages:-1: Multiple commands produce '/Use...原创 2018-09-25 17:24:15 · 668 阅读 · 0 评论 -
abort trap:6 问题解决移除pod 重新安装
一、全新安装前,先检查是否有安装残留1、如果之前装过cocopods,最好先卸载掉,卸载命令:$ sudo gem uninstall cocoapods2、先查看本地安装过的cocopods相关东西,命令如下:$ gem list --local | grep cocoapods会显示如下:cocoapods-core (0.39.0)cocoapods-downloader (0...原创 2018-11-05 11:16:56 · 1178 阅读 · 0 评论 -
wkwebview加载空白问题
代理方法中实现:// 在收到响应后,决定是否跳转- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisi...原创 2019-03-31 21:49:30 · 2975 阅读 · 0 评论 -
developer 开启双重验证 your appid needs to be updated
开发者中心开启双重验证遇到的问题:解决办法:点击support page,进入详情去看整个步骤;中文版:https://support.apple.com/zh-cn/HT207198001如果未开启双重验证,那么开启;如果已经开启,则可以关闭,再重启。002用手机登录appid;然后设置-appid -安全与密码;点击开启二次验证- 更新账户安全这样登录开发者中心的时...原创 2019-04-01 17:37:36 · 3104 阅读 · 0 评论 -
如何检查app中是否使用了广告标识
打开文件目录输入命令行: grep -r advertisingIdentifier .出现match 则含有广告标识原创 2019-04-01 18:00:32 · 983 阅读 · 0 评论 -
微信分享[WXApi sendReq:req] 返回NO
原因在于,返回的分享图片尺寸太大:/*! @brief 设置消息缩略图的方法 * * @param image 缩略图 * @note 大小不能超过32K */- (void) setThumbImage:(UIImage *)image;该方法中明确规定 大小不能超过32k。...原创 2018-09-10 11:07:00 · 3095 阅读 · 0 评论