2023年5月16日
摘要: brew install iOS-webkit-debug-proxynpm i remotedebug-ios-webkit-adapter 参考 https://www.npmjs.com/package/remotedebug-ios-webkit-adapterremotedebug_ios 阅读全文
posted @ 2023-05-16 17:58 大圣ios博客 阅读(136) 评论(0) 推荐(0) 编辑
  2022年7月23日
摘要: UIImage *image = [UIImage imageNamed:@"123"]; NSData *data = UIImagePNGRepresentation(image); // 每次读取1024的长度 NSInteger readLength = 1024; NSInteger co 阅读全文
posted @ 2022-07-23 11:54 大圣ios博客 阅读(438) 评论(0) 推荐(0) 编辑
  2022年2月9日
摘要: 给定一个只包括 '(',')','{','}','[',']' 的字符串 s ,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。左括号必须以正确的顺序闭合。 func isValid(_ s: String) -> Bool { let dict: [Character: 阅读全文
posted @ 2022-02-09 17:57 大圣ios博客 阅读(28) 评论(0) 推荐(0) 编辑
  2022年2月7日
摘要: 给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的 中位数 。 输入:nums1 = [1,3], nums2 = [2] 输出:2.00000 解释:合并数组 = [1,2,3] ,中位数 2 输入:nums1 = [1,2], nu 阅读全文
posted @ 2022-02-07 19:39 大圣ios博客 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度。 输入: s = "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。 输入: s = "bbbbb" 输出: 1 解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。 f 阅读全文
posted @ 2022-02-07 19:27 大圣ios博客 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。 你可以按任意顺序返回答案。 输入:nums = [2,7,11,15] 阅读全文
posted @ 2022-02-07 17:29 大圣ios博客 阅读(31) 评论(0) 推荐(0) 编辑
  2021年7月22日
摘要: // // RCGradientProgressView.swift // RemoteControlUnit // // Created by lsp on 2021/7/21. // import UIKit open class RCGradientProgressView: UIView { 阅读全文
posted @ 2021-07-22 20:11 大圣ios博客 阅读(1242) 评论(0) 推荐(0) 编辑
  2021年6月25日
摘要: // // SecondViewController.m // Birth_OC // // Created by lsp on 2021/6/25. // #import "SecondViewController.h" @interface SecondViewController () @pr 阅读全文
posted @ 2021-06-25 16:27 大圣ios博客 阅读(330) 评论(0) 推荐(0) 编辑
摘要: @interface DBAnimationView () <CAAnimationDelegate> @property (strong, nonatomic) NSMutableArray *imageArrM; @end @implementation DBAnimationView -(in 阅读全文
posted @ 2021-06-25 10:56 大圣ios博客 阅读(824) 评论(0) 推荐(0) 编辑
  2021年6月15日
摘要: 控制器代码 class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() view.addSubview(collectionView) } lazy var collection 阅读全文
posted @ 2021-06-15 20:54 大圣ios博客 阅读(567) 评论(0) 推荐(0) 编辑