![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
Zsama666
这个作者很懒,什么都没留下…
展开
-
iOS 去除TabBar顶部黑色线的方法
使用tabbar 会使控件顶部有一条黑色细线 CGRect rect = CGRectMake(0, 0, SCREENWIDTH, SCREENHEIGHT); UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [[UIColor clearCo..原创 2021-08-30 15:41:38 · 811 阅读 · 0 评论 -
Xcode 报错 xcrun: error: active developer path(/Applications/Xcode.app/Contents/...does not exist问题解决。
通过sudo xcode-select --install安装xcode命令行工具解决(需要10多GB 空间)其他命令记录:sudo xcode-select -p输出 xcode 命令行的地址xcode-select --switch /Library/Developer/CommandLineTools切换新的命令行目录本次记录时的系统版本:...原创 2021-08-05 12:23:15 · 604 阅读 · 0 评论 -
rn保持屏幕常亮 react-native-idle 及1.1.0在iOS模拟器或SE真机闪退的某个原因解决方法
react-native-idlePrevent screen to sleep in ReactNative app.Installnpm install react-native-idle --savereact-native link react-native-idleUsageimport RNIdle from 'react-native-idle'RNIdle.disableIdleTimer()//保持屏幕常亮RNIdle.enableIdleTi...原创 2020-11-12 15:15:36 · 749 阅读 · 3 评论 -
React native 获取屏幕方向,限制横竖屏 react-native-orientation和react-native-orientation-locker
关于RN下横竖屏的相关操作,浏览了很多博客都是使用这个老库居多,后发现一个bug ,新库中有所解决。但新库也有点异常的地方。暂时先做记录,后续再来填坑。老库:https://github.com/yamill/react-native-orientation新库:https://github.com/wonday/react-native-orientation-lockergithub地址安装:使用 yarn (RN 0.60 及以上) yarn add react-n.原创 2020-11-12 15:03:18 · 2872 阅读 · 2 评论 -
Xcode React-native Archive 报错 Multiple commands produce...IntermediateBuildFilesPath/UninstalledProd
Xcode React-native 运行一切正常,Archive时报错.Multiple commands produce '/Users/*******/Library/Developer/Xcode/DerivedData/*******-dwdonbnvuqjattffwatyikzwovln/Build/Intermediates.noindex/ArchiveIntermediates/*******/IntermediateBuildFilesPath/Uninstall...原创 2020-09-10 15:59:52 · 1094 阅读 · 0 评论