iOS componentization - Cocopods creates a private library

1, Create a folder mkdir Module 2, Download Engineering Scaffold pod lib create AaronSwift Aaron Swift is the name of the component project you want to create. During the installation process, you will be prompted to enter the configuration of the project to be downloaded (as follows:), and then enter iOS, Swift, Yes, Quick and Yes. In the seco ...

Posted by BrandonKahre on Fri, 20 Mar 2020 04:48:48 -0700

What did Runtime do during the startup of Runtime objc4-779.1 App?

Knowledge preparation First of all, we need to know a scenario. We click on the application on the screen, and then we can see that the application is fully displayed and can be operated. In this process, the system, runtime and our own code have done a lot of work, and many excellent blogs have descr ...

Posted by smerny on Tue, 10 Mar 2020 04:09:32 -0700

iPhone hides navigation bar on first page only

I have the following code to hide and show the navigation bar. It is hidden when the first view is loaded and then when "children" is called. The trouble is, when they go back to the root view, I can't find the event / action that triggered it to hide again I have a "test" button on the root page for manual execution, bu ...

Posted by help_lucky on Tue, 18 Feb 2020 21:01:06 -0800

Swift - implement the auto hidden navigation bar of the free fish commodity list head following the slide

Recently, the epidemic broke out. I didn't have a look at the idle fish IOSApp at home. I found that the function of auto hiding the navigation bar of the commodity list was very good, so I decided to write one myself. Leisure fish: Train of thought: The navigation will follow the upward movement of the ...

Posted by fantomel on Tue, 11 Feb 2020 23:22:58 -0800

iOS multi thread four: NSThread + summary

  1, NSThread It is a lightweight Multithread in iOS. One NSThread object corresponds to one thread 1. Some class methods [NSThread mainThread]; // Get main thread [NSThread currentThread]; // Get current thread // Blocking the current thread and setting the sleep time are implemented in two ways ...

Posted by pjsteinfort on Sun, 19 Jan 2020 05:42:32 -0800

swift network request URLRequest

Swift network request data viewController import UIKit class ViewController: UIViewController,UITableViewDataSource,MJRefreshBaseViewDelegate { //Table attribute var table:UITableView? var tableDataArr:[News]? var mjHeaderView:MJRefreshHeaderView? var mjFooterView:MJRefreshFooterView? var st ...

Posted by nickadeemus2002 on Sat, 04 Jan 2020 04:34:15 -0800

Technology sharing | high availability solution of limitless storage for Mac and Prometheus

Author: Wang Jishun Baozun e-commerce DBA is mainly responsible for the design and development of database monitoring alarm and automation platform, and is good at database performance optimization and fault diagnosis. background As the number of servers in each environment of the company increases, there are multiple Prometheus clusters dep ...

Posted by tony-kidsdirect on Wed, 25 Dec 2019 00:57:56 -0800

iOS remote notification method trigger

iOS remote notification trigger I. system under iOS 10 It is a method. There is no way to distinguish the specific situation of receiving notification and clicking notification. You can use UIApplicationStateBackground to judge the situation of the front and back office // This method will be invoked even if the application was launched or res ...

Posted by jhuaraya on Sun, 08 Dec 2019 03:02:21 -0800

Basic use and source code analysis of PromiseKit

Promise is an application framework that deals with a series of asynchronous operations. It can ensure that a series of asynchronous operations can be executed in sequence. When an error occurs, it can be handled by catch ing the error. Promise framework is also a good interpretation of swift's face-to-face protocol programming and functional p ...

Posted by Hagbard on Thu, 14 Nov 2019 00:55:09 -0800

Thinking and feeling of the first reading of Kingfisher network image cache Library

The OC version of SDWebimage that I read before is mature due to the development trend of Swift. It's also time to practice (think of Andy Lau's practice), think, read and write while flying in the world. At first, I plan to read it from the beginning, but the Kingfisher version is limited to upgrading with the Swift version, so if you want to ...

Posted by gli on Tue, 05 Nov 2019 19:55:52 -0800