iOS14+Swift5.x+Xcode12 learning notes - UITableView

brief introduction Table view is a view that displays the contents row by row. Each row is called a Cell. iOS has only one Cell per row by default. Cells support customization. Cells are divided into dynamic and static. Dynamic refers to the automatic generation of cells during program operation. It is generally used when the specific numb ...

Added by phpwizard01 on Mon, 27 Dec 2021 00:23:43 +0200

Swift discovery 2: swift properties

In swift, attributes are mainly divided into the following categories Storage properties Calculation properties Deferred storage properties Type properties Storage properties There are two kinds of storage attributes: Or it is a constant storage attribute, that is, let modification Or variable storage attributes, namely var modificati ...

Added by werty37 on Fri, 17 Dec 2021 16:53:33 +0200

Swift closure / enumeration

1. Swift closure Closures are self-contained functional code blocks that can be used in code or passed as parameters. Closures in Swift are similar to code blocks in C and Objective-C and anonymous functions in some other programming languages. Global functions and nested functions are actually special closures. The forms of closures ar ...

Added by inSaneELF on Fri, 17 Dec 2021 15:00:26 +0200

Ceph use series -- Ceph RGW use

The theme of this article is "Ceph use series - Ceph RGW use", welcome to pay attention. Ceph RGW introduction Ceph object gateway is an object storage interface built on librados, which aims to provide a RESTful gateway to Ceph storage cluster for applications. Ceph object storage uses t ...

Added by isuckat_php on Fri, 19 Jun 2020 11:32:47 +0300

Summary of iOS Caton monitoring scheme

After sorting out the schemes of Caton monitoring in iOS, if you don't understand the principle of Caton, you can read this article iOS's skill of keeping the interface smooth , well written. FPS FPS (Frames Per Second) is a definition in the image field, which represents the number of rendered fra ...

Added by sx on Thu, 05 Mar 2020 06:14:00 +0200

swift carousel + network request + custom cell

Paging controller 1. Paging controller Import third party PagingMenuController Third party links: https://github.com/kitasuke/PagingMenuController Import links using third-party methods: http://www.hangge.com/blog/cache/detail_1656.html Using PagingMenuController ViewController.m ViewController1,ViewController2,ViewController3,V ...

Added by R4nk3d on Fri, 27 Dec 2019 00:47:19 +0200

Swift 4.2 standard library changes

Swift 4.2 released 1. RangeReplaceableCollection collection add conditional delete method( Official text) protocol RangeReplaceableCollection { /// Removes every element satisfying the given predicate from the collection. mutating func removeAll(where: (Iterator.Element) throws -> Bool) rethrows } extension RangeRepla ...

Added by anoopmail on Wed, 25 Dec 2019 20:58:23 +0200

Swift. Rotation animation, 100 lines of code

Effect: Static: sub view s are arranged symmetrically, allowing dynamic addition, and 0 ~ 24 can be displayed well When rotating: the center view does not move, the sub view rotates with the gesture, and the bottom sub view becomes larger and prominent Implementation ideas: All the controls are added to a large background v ...

Added by saeeddeep on Thu, 12 Dec 2019 21:45:07 +0200

iOS12 WKWebView getting cookie s and using wkwebview JavaScript Bridge

Recently, using WKWebView to obtain cookie s by proxy method has been unsuccessful. Later, I found that there was a problem with the newly upgraded IOS 12, so I directly added the code - (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKN ...

Added by gfmitchell on Wed, 11 Dec 2019 21:51:50 +0200

[30 swift projects in 30 days] swift 5 learning 01.CustomFont

In the 01.CustomFont project, the main learning is the installation and use of SnapKit, the automatic layout library. 1.SnapKit installation The content of Podfile is as follows: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target 'CustomFont' do pod 'SnapKit' end Locate the directory of Pod ...

Added by sanlove on Tue, 12 Nov 2019 18:39:40 +0200