![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
张择端
这个作者很懒,什么都没留下…
展开
-
iOS 推荐
自定义转场:LYCustomTransition动画:AIAnimationDemo转载 2021-12-22 15:03:14 · 135 阅读 · 0 评论 -
Swift Realm数据库更新
SwiftRealm数据库更新 /// 配置数据库 public class func configRealm() { /// 这个方法主要用于数据模型属性增加或删除时的数据迁移,每次模型属性变化时,将 dbVersion 加 1 即可,Realm 会自行检测新增和需要移除的属性,然后自动更新硬盘上的数据库架构,移除属性的数据将会被删除。 let dbVersion : UInt64 = 1 let docPath = NSSearch.转载 2021-04-14 11:05:15 · 599 阅读 · 0 评论 -
ios开发相关
1.textfield文字偏移- (void)setTextOffsetWithLeftViewRect : (CGRect)rect WithMode :(UITextFieldViewMode)mode{ UIView *view = [[UIView alloc]initWithFrame:rect]; self.leftView = view; self.leftViewMode = mode; //枚举 默认为no 不显示leftView}2./*...原创 2020-06-05 15:14:52 · 251 阅读 · 0 评论 -
iOS 简单自定义UITableView左滑编辑按钮样式适配13
// 自定义左滑显示编辑按钮-(NSArray<UITableViewRowAction*>*)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewRowAction *rowAction = [UITableViewRow...原创 2019-10-29 14:59:01 · 2216 阅读 · 5 评论 -
ios13适配问题
1.statusBar颜色暗黑模式下if (@available(iOS 13.0, *)) { [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDarkContent; } else { // Fallback o...转载 2019-10-19 12:27:06 · 364 阅读 · 0 评论 -
打包sdk上传Cocoapods包含xib等资源文件
//podspace文件s.resource_bundles = { 'SQCustomAlertView' => ['*.{xib}'] }//引用 public override func loadView() { Bundle(for: type(of: self)).loadNibNamed("SQCustomAlertView.bund...翻译 2019-10-18 18:45:56 · 469 阅读 · 0 评论 -
iOS Universal Link
iOS Universal Linkhttps://www.jianshu.com/p/96649a73795bhttps://www.jianshu.com/p/77b530f0c67b转载 2019-09-17 17:57:21 · 989 阅读 · 0 评论 -
ios 获取手机上app列表
- (void)getAppList{ id space = [NSClassFromString(@"LSApplicationWorkspace") performSelector:@selector(defaultWorkspace)]; NSArray *plugins = [space performSelector:@selector(installedPlugin...转载 2019-06-10 17:24:41 · 4263 阅读 · 1 评论 -
iOS 多级页面返回
NSInteger index = (NSInteger)[[self.navigationController viewControllers] indexOfObject:self];if (index > 2) { [self.navigationController popToViewController:[self.navigationController.vie...原创 2019-05-21 17:20:49 · 918 阅读 · 0 评论 -
ios 热更新jsPatch
需要注意的问题官方文档代码转换工具原创 2019-05-09 17:45:28 · 488 阅读 · 0 评论 -
iOS移除父控件中所有子控件
for (UIView *subview in view.subviews) { [subview removeFromSuperview];}或者[view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];原创 2019-05-14 14:44:02 · 445 阅读 · 0 评论 -
ios真机调试包 不断更新
已包含最新的 12.3iOS 12.2 (16E5181e)iOS 12.1 (16B92)iOS 12.1 (16B91)iOS12.1 (16B5068g) beta2iOS12.1 (16B5059d) beta1打开 Finder,按下 command + shift + G,输入/Applications/Xcode.app/Contents/Developer/...转载 2019-04-15 10:36:19 · 968 阅读 · 2 评论 -
scrollerview滑动以后屏幕上面留白
原创 2018-04-19 15:54:42 · 706 阅读 · 0 评论 -
iOS 利用Router机制进行动态跳转ViewController
1.简单页面跳转我们只需要在AppDelegate.m里面引入如下代码:[[HHRouter shared] map:@"one" toControllerClass:[OneViewController class]];现在我们在任何一个ViewController里面去跳转这个OneViewController时,不需要在import这个文件了,只需要:ViewController *vc =...转载 2018-04-19 16:10:23 · 1517 阅读 · 0 评论 -
如何彻底移除你的Boot Camp分区?
如果你已经尝试磁盘工具还没成功卸载windows以后却发现磁盘没有恢复我已经找到了终极方法 亲测:点击打开链接转载 2018-06-13 17:11:44 · 15091 阅读 · 0 评论 -
iOS 修改状态栏字体颜色
1.首先是设置info.plist 文件: 将View controller-based status bar appearance 的值设置为NO。2.在AppDelegate.m 的方法中如下设置,默认会显示黑色等于为你的app状态栏设置一个主颜色- (BOOL)application:(UIApplication *)application didFinishLaunchingW...原创 2019-02-20 09:49:50 · 2460 阅读 · 0 评论 -
Review the updated Paid Applications Schedule.
在iTunesconnect创建新的APP,报问题 Review the updated Paid Applications Schedule.http://blog.cocoachina.com/article/64954转载 2019-03-22 13:53:46 · 1597 阅读 · 0 评论 -
tableview section悬停问题解决: UITableViewStyleGrouped
self.tableView.estimatedRowHeight = 0;//预估行高 self.tableView.estimatedSectionHeaderHeight = 0; self.tableView.estimatedSectionFooterHeight = 0; self.tableView.separatorStyle = UITabl...原创 2019-03-22 14:02:17 · 716 阅读 · 0 评论 -
oc实用疑难杂症解决方法ios开发小技巧
1.self.edgesForExtendedLayout = UIRectEdgeBottom ; //https://www.cnblogs.com/SoulKai/p/5811296.html2.model中id属性解决方法:在controller中添加 :[OrderModel mj_setupReplacedKeyFromPropertyName:^NSDiction...原创 2019-03-22 14:15:11 · 381 阅读 · 0 评论 -
苹果内购退款问题
苹果内购还是有不少问题的,还是需要和后台多多配合,例如,购买的时候默认的是当前登录的苹果id付款,如果想切换到别的id就会出现问题。。原来也没有退款流程,现在可以退款了,简书链接:http://www.jianshu.com/p/d9d742e82188...转载 2019-03-22 14:18:35 · 4332 阅读 · 0 评论 -
阿里云实人认证 人脸识别
最近接阿里云实人认证,犯了一个最常见的错误,人脸识别的相机一直调不起来,原来是sdk更新了sdk下载地址翻译 2019-04-16 13:42:54 · 4453 阅读 · 0 评论 -
外部获取IndexPath的几种方式(关联对象等)
一、单击某个cell中的button获取indexPath1、 一般方式- (void)buttonAction:(UIButton *)sender { UITableViewCell *cell = (UITableViewCell *)[[sender superview] superview]; NSIndexPath *indexPath = ...转载 2018-03-22 16:17:19 · 1507 阅读 · 0 评论