240 發(fā)簡信
IP屬地:廣東
  • xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
    [!] Failed to load 'glog' podspec:
    [!] Invalid `glog.podspec` file: undefined method `[]' for nil.

    # from /Users/sword/Desktop/renphoHealth_rn/node_modules/react-native/third-party-podspecs/glog.podspec:38
    # -------------------------------------------
    # match = xcode_path.match(/Xcode (\d+)\.(\d+)/)
    > major_version = match[1].to_i
    # minor_version = match[2].to_i
    # -------------------------------------------

    sword@DeabeldeMacBook-Pro renphohealth % sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
    sword@DeabeldeMacBook-Pro renphohealth % pod install

    Cocoapods安裝流程 2021.6

    一.安裝RVM (1)安裝RVM: curl -L get.rvm.io | bash -s stablesource ~/.bashrc , source ~/.bash_...

  • rvm install ruby-3.3.0 -C --with-openssl-dir=/usr/local/etc/openssl@3

    Cocoapods安裝流程 2021.6

    一.安裝RVM (1)安裝RVM: curl -L get.rvm.io | bash -s stablesource ~/.bashrc , source ~/.bash_...

  • 120
    git revert 撤銷中間某次commit

    前言 在工作中,我們經(jīng)常會碰到這種情況终议,發(fā)現(xiàn)中間的某次提交是錯(cuò)誤的,或者不再需要的代碼坏匪,這個(gè)時(shí)候想要撤回那次commit,該如何呢撬统? 問題背景 假如遠(yuǎn)程倉庫上有5次commi...

  • swift中JSON解析使用CleanJSON

    CleanJSON[https://github.com/Pircate/CleanJSON] 直接使用Codable的痛點(diǎn) 只要有一個(gè)屬性解析失敗适滓,整個(gè)解析都會失敗。導(dǎo)致解...

  • 120
    iOS藍(lán)牙,使用iOSDFULibrary進(jìn)行DFU升級

    現(xiàn)在項(xiàng)目有一個(gè)需求就是做空中升級恋追,以前都是用官方代碼進(jìn)行升級的凭迹,但是代碼使用的framework用的是swift,目前項(xiàng)目又是用OC寫的,所以我們要進(jìn)行混編苦囱,步驟如下: 1....

  • 120
    Xcode14 下載 watchOS Simulator 失敗

    原文地址: Xcode14 下載 watchOS Simulator 失敗[https://blog.wyan.vip/2022/11/xcode_download.html...

  • 120
    iOS中APP適配(RTL阿拉伯適配)

    最近項(xiàng)目適配阿拉伯嗅绸,記錄一下最近的工作內(nèi)容。在此之前撕彤,我是沒有了解過這方面的知識鱼鸠。首先說說為什么要適配阿拉伯呢,是因?yàn)槲覀冎形暮陀⑽倪@些是從左往右顯示的語言喉刘,但是阿拉伯的語言...

  • 120
    iOS音頻篇:AVPlayer的緩存實(shí)現(xiàn)

    在上一篇文章《使用AVPlayer播放網(wǎng)絡(luò)音樂》介紹了AVPlayer的基本使用瞧柔,下面介紹如何通過AVAssetResourceLoader實(shí)現(xiàn)AVPlayer的緩存 需求梳...

  • 120
    2025安裝CocoaPods

    點(diǎn)贊!!! 都還干著iOS嘛???!!! 背景 新入職公司,分配一臺全新MacBook pro睦裳,借此機(jī)會梳理一下cocoapods的完整安裝流程造锅。 cocoapods安裝依賴...

  • iOS [framework] CUICatalog: Invalid asset name supplied: '(null)' 打印的問題

    Xcode控制臺打印:[framework] CUICatalog: Invalid asset name supplied: '(null)'不知道是哪里的圖片不存在或者傳...

  • - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
    {
    NSInteger rowNum = [tableView numberOfRowsInSection:indexPath.section];

    // 繪制4種情況下的貝塞爾曲線
    UIRectCorner corner = UIRectCornerAllCorners;
    CGRect pathRect = CGRectZero;
    CGFloat cornerRadius = 8.f;
    CGFloat pathInset = 3.f;
    if (rowNum == 1) {
    pathRect = UIEdgeInsetsInsetRect(cell.bounds, UIEdgeInsetsMake(pathInset, pathInset, pathInset, pathInset));
    } else if (indexPath.row == 0) {
    pathRect = UIEdgeInsetsInsetRect(cell.bounds, UIEdgeInsetsMake(pathInset, pathInset, 0, pathInset));
    corner = (UIRectCornerTopLeft | UIRectCornerTopRight);
    } else if (indexPath.row == rowNum - 1) {
    pathRect = UIEdgeInsetsInsetRect(cell.bounds, UIEdgeInsetsMake(0, pathInset, pathInset, pathInset));
    corner = (UIRectCornerBottomLeft | UIRectCornerBottomRight);
    } else {
    pathRect = UIEdgeInsetsInsetRect(cell.bounds, UIEdgeInsetsMake(0, pathInset, 0, pathInset));
    corner = UIRectCornerAllCorners;
    cornerRadius = 0;
    }
    UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:pathRect byRoundingCorners:corner cornerRadii:CGSizeMake(cornerRadius, cornerRadius)];

    // 創(chuàng)建圖層并設(shè)置貝塞爾曲線
    CAShapeLayer *normalLayer = [[CAShapeLayer alloc] init];
    normalLayer.fillColor = [UIColor whiteColor].CGColor;
    normalLayer.shadowColor = [UIColor blackColor].CGColor;
    normalLayer.shadowOpacity = 0.2;
    normalLayer.shadowOffset = CGSizeMake(0, 0);
    normalLayer.path = path.CGPath;

    // 創(chuàng)建背景視圖添加圖層
    UIView *normalBgView = [[UIView alloc] initWithFrame:cell.bounds];
    normalBgView.clipsToBounds = YES;
    [normalBgView.layer insertSublayer:normalLayer atIndex:0];

    // cell設(shè)置
    cell.backgroundView = normalBgView;
    cell.backgroundColor = UIColor.clearColor;
    }

    iOS UITableView section圓角陰影

    來源:http://www.reibang.com/p/739408a7aae1 給section添加圓角和陰影效果廉邑,效果如下: 全部實(shí)現(xiàn)都在UITableView的wil...

  • 2.12 pinternals

    Chisel的初步使用

    最近每周末都會看葉孤城的直播哥蔚,對于我們iOS開發(fā)者來說,確實(shí)是一個(gè)福利蛛蒙,很感謝他們的分享精神糙箍,收獲到的一些東西特此記錄下。 12月13號 LLDB 今天聽了武蘊(yùn)牛x的視頻牵祟,講...

  • 你好,iOS工程運(yùn)行時(shí),彈出的RN終端如何關(guān)閉?挺討厭這個(gè)的

    iOS關(guān)于RN環(huán)境搭建遇到的坑

    最近在學(xué)習(xí)RN,在學(xué)習(xí)過程中遇到一些坑,在這里跟大家分享一下,同時(shí)也非常感謝幾位導(dǎo)師,Hank老師,Vergil老師,特別Lisa老師(非常感謝老師在半夜一兩點(diǎn)不睡覺給我解決...

  • 120
    iOS UITableView section圓角陰影

    來源:http://www.reibang.com/p/739408a7aae1 給section添加圓角和陰影效果深夯,效果如下: 全部實(shí)現(xiàn)都在UITableView的wil...

  • iOS的MVC框架之控制層的構(gòu)建(上)

    在我前面的兩篇文章里面分別對MVC框架中的M層的定義和構(gòu)建方法進(jìn)行了深入的介紹和探討。這篇文章則是想深入的介紹一下我們應(yīng)該如何去構(gòu)建控制層诺苹」窘控制層是聯(lián)系視圖層和模型層的紐帶。...

  • iOS的MVC框架之控制層的構(gòu)建(下)

    在我的iOS的MVC框架之控制層的構(gòu)建(上)一文中介紹了一些控制層的構(gòu)建方法收奔,而這篇文章則繼續(xù)對一些方法進(jìn)行展開討論掌呜。MVC被眾多開發(fā)者所詬病的C層的膨脹,究其原因不外乎有如...

  • 120
    Go2Shell 神器

    在 Mac 終端坪哄,cd 到某個(gè)目錄是非常常用的操作质蕉。一般我們會將目錄拖拽到 Terminal 或者 iTerm2(替代默認(rèn)的 Terminal)势篡。雖然問題也不大,但總覺得這樣...

  • 120
    macbook安裝Beyond Compare破解

    一模暗、原理Beyond Compare每次啟動后會先檢查注冊信息禁悠,試用期到期后就不能繼續(xù)使用。解決方法是在啟動前汰蓉,先刪除注冊信息绷蹲,然后再啟動,這樣就可以永久免費(fèi)試用了顾孽。二祝钢、下載...

  • 使用pod庫要注意的tips

    1.pod lib lint 和 pod spec lint 命令的區(qū)別 pod lib lint是只從本地驗(yàn)證你的pod能否通過驗(yàn)證; pod spec lint是從本地和...

  • 120
    iOS 單元測試(Unit Test 和 UI Test)

    一 :前言 很多的開發(fā)者 都聽說過單元測試,但是不可否認(rèn) 很多開發(fā)者 在實(shí)際開發(fā)中很少使用這個(gè) 單元測試若厚。 大部分人想我自己把工程跑起來 一步步 按照 流程來測試 就行了 拦英。...

亚洲A日韩AV无卡,小受高潮白浆痉挛av免费观看,成人AV无码久久久久不卡网站,国产AV日韩精品