• 苹果新的编程语言 Swift 语言进阶(十三)--门类检查与类型嵌套

    c_a_3();苹果新的编程语言 Swift 语言进阶(十三)--类型检查与类型嵌套一 类型检查1、 类型检查操作符      类型检查用来检查或转换一个实例的类型到另外的类型的一种方式。      在Swift中,类型检查使用is和as操作符来实现。      is操作符用来检查一个实例是否是某种...

    2023-11-11 20:46:23
  • 苹果新的编程语言 Swift 语言进阶(2)--基本数据类型

    c_a_3();苹果新的编程语言 Swift 语言进阶(二)--基本数据类型         一  、   常量和变量                  Swift语言 对常量和变量的声明进行了明确的区分         Swift语言的常量类型比C 语言的constants类型更加强大,语义更加明...

    2023-11-08 22:05:36
  • swift调用oc项目

    第一步:创建和配置Bridging-Header.hSwift与OC进行混编,首先要有一个.h文件,这里使用Bridging-Header.h然后设置项目的Build Settings--Swift Compiler--Objective-C Bridging Header内容为DemoApp/Br...

    2023-11-08 18:57:15
  • 用Swift创建一个自定义,可调整的控件

    本文翻译自:HOW TO BUILD A CUSTOM (AND “DESIGNABLE”) CONTROL IN SWIFT大约两年前我写了一篇关于如何在iOS里创建自定义控件的教程。那篇教程在开发者社区中非常受欢迎,所以我决定用Swift语言来更新它,同时添加 designale/inspect...

    2023-11-08 18:41:21
  • [Swift]LeetCode1253. 重构 2 行二进制矩阵 | Reconstruct a 2-Row Binary Matrix

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:36:04
  • [Swift]LeetCode1250. 检查「好数组」| Check If It Is a Good Array

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:35:46
  • [Swift]LeetCode1268. 搜索推荐系统 | Search Suggestions System

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:32:20
  • [Swift]LeetCode1267. 统计参与通信的服务器 | Count Servers that Communicate

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:32:26
  • [Swift]LeetCode1252. 奇数值单元格的数目 | Cells with Odd Values in a Matrix

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:32:08
  • [Swift]LeetCode1266. 访问所有点的最小时间 | Minimum Time Visiting All Points

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:31:56
  • [Swift]LeetCode1255. 得分最高的单词集合 | Maximum Score Words Formed by Letters

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:31:44
  • [Swift]LeetCode1254. 统计封闭岛屿的数目 | Number of Closed Islands

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:31:26
  • [Swift]LeetCode1249. 移除无效的括号 | Minimum Remove to Make Valid Parentheses

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:15:41
  • [Swift]LeetCode1240. 铺瓷砖 | Tiling a Rectangle with the Fewest Squares

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(let_us_code)➤博主域名:https://www.zengqiang.org➤GitHub地址:https://github.com/strengthen/LeetCode➤原文地址:➤...

    2023-11-08 18:15:47
  • 【Swift】学习笔记(1)——初识 基础数据类型,代码风格,元组,断言

    c_a_3();【Swift】学习笔记(一)——初识 基础数据类型,代码风格,元组,断言自从苹果发布swift之后,我就一直想学习一下,一直未能正式的投入到它的学习中,从今天开始我将用博客来驱动我的swift学习,也为大家更快了解它。1、定义变量和常量var  定义变量,let定义常量。例如:va...

    2023-11-08 14:42:27
  • [Swift]LeetCode933. 最近的请求次数 | Number of Recent Calls

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs.com/strengthen/)➤GitHub地址:https://github.com/stren...

    2023-11-08 14:32:05
  • [Swift]LeetCode935. 骑士拨号器 | Knight Dialer

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs.com/strengthen/)➤GitHub地址:https://github.com/stren...

    2023-11-08 14:31:59
  • [Swift]LeetCode43. 字符串相乘 | Multiply Strings

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs.com/strengthen/)➤GitHub地址:https://github.com/stren...

    2023-11-08 14:31:47
  • [Swift]LeetCode41. 缺失的第一个正数 | First Missing Positive

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs.com/strengthen/)➤GitHub地址:https://github.com/stren...

    2023-11-08 14:31:23
  • [Swift]LeetCode42. 接雨水 | Trapping Rain Water

    ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs.com/strengthen/)➤GitHub地址:https://github.com/stren...

    2023-11-08 14:31:11