Interface Layout Tool under iOS-MyLayout Layout Layout Layout Layout Layout Framework
Swift:TangramKit: https://github.com/youngsoft/TangramKit
OC:MyLayout: https://github.com/youngsoft/MyLinearLayout
brief introduction
MyLayout Is a set of iOS interface view layout framework. Its core is based on overloading the layoutSubviews method of UIView and setting the bounds and center attributes of subviews. MyLayout is po ...
Posted by pellky on Wed, 17 Apr 2019 09:15:32 -0700
iOS fingerprint identification login process and Implementation
Change from: Ren Bo'an Brief Book
Chatting
Recently, I've been chasing after Qingyun Zhi. I always feel that TV plays are not as wonderful as novels. Yes, the acting skills of the big cafes are amazing and the adaptation of the plot is compact, but it has to be said that many things can not be achieved by acting alone. The protagonist's hea ...
Posted by echoofavalon on Sun, 31 Mar 2019 08:15:29 -0700
Mixed edition of swift and OC
Why mix it up?
Language development trend (TIOBE), Swift ranking continues to rise, OC ranking shows gravitational decline.
Normal Iteration Requirements for Projects
Many third-party libraries still use OC implementations
Modules previously implemented with OC in the project will cost a little more if they are rewritten with Swift
We need ...
Posted by phorman on Sat, 30 Mar 2019 15:09:30 -0700
Swiftlink Code Specification Property Description
Detailed description of SwiftLint code specification attributes
Attribute 1: weak_delegate. Agents should be written as weak types (weak agents) to avoid circular references
For example:
/// 1.1 Compiled through
class Langke {
var chenlong: NSObjectProtocol?
}
/// 1.2 Compiler passed, but triggered the weak_delegate warning of swift ...
Posted by jawaidpk on Fri, 29 Mar 2019 09:15:30 -0700
swift design pattern learning-decoration pattern
Mobile access is not good, please visit me Personal blog
Decoration mode
The function of an object is dynamically extended without changing the original class file and using inheritance. It wraps real objects by creating a wrapping object, or decoration.
Characteristics of Decoration Mode
Decorative objects and real objects have the sam ...
Posted by raytri on Mon, 25 Mar 2019 03:18:31 -0700
Thread Security of Swift Array copy
Thread Security of Swift Array copy
NSArray inherits from NSObject, belongs to object, and has copy method. Swift's Array is struct, and there is no copy method. Assigning an Array variable to another variable has the same memory address? Relevant multithreading security issues. This paper explores these two issues.
Memory address
Define test c ...
Posted by abkdesign on Wed, 20 Mar 2019 23:12:32 -0700
Swift version share sdk third-party login facebook, twitter, Google plus integrated tutorial
Recently, when I was writing a swift project, I needed to use the third party login of facebook, googleplus, Twitter. Another colleague who worked on the oc project told me that his shareSDK third party login had a pit that I couldn't solve, so I didn't use sharesdk, but the landlord was a person who pursued it and plunged into sharesdk.
Step 1 ...
Posted by wildmanmatt on Mon, 11 Feb 2019 01:51:18 -0800
Configuration of c3p0 Connection Pool in Spring and the Use of JdbcTemplate Complete Add ing () Method to Database by Injecting Various Required Objects into XML Configuration File
Configuration of XML methods through configuration files
You can use a very concise Service class
The UserService class code is as follows:
package com.swift;
public class UserService {
private UserDao userDao;
public void setUserDao(UserDao userDao) {
this.userDao = userDao;
}
public boolean add() {
return us ...
Posted by netman182 on Thu, 07 Feb 2019 14:51:16 -0800
Swift - Basic usage of the default UICollectionViewController for the system
When you create without xib, you need to rewrite
override init(collectionViewLayout layout: UICollectionViewLayout){}
The UICollectionViewLayout value needs to be passed when invoking, otherwise an error will be reported.
let layout = UICollectionViewFlowLayout.init()
let vc1 = DataCollectionViewController.init(collectio ...
Posted by darkwolf on Sat, 02 Feb 2019 11:00:16 -0800
Swift 4.1 Systematic Learning 13 Structures (2)
//
// main.swift
// swift14 (Structures)
//
// Created by iOS on 2018/10/15.
// Copyright 2018 weiman. All rights reserved.
//
import Foundation
// Structures (II)
/*
Continue with the previous section and learn about the structure.
In the previous section, we mainly studied the attributes of the structure, including:
1. Stored i ...
Posted by doctor_james on Fri, 01 Feb 2019 16:21:15 -0800