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

Try Flutter: write a boring App (with Flutter experience)

Today's X Github: https://github.com/shuiRong/T... (today's X) This is a boring App written by FlutterRecommend a different one every day: picture, poem, famous saying, music, music review, advanced mathematics, two kinds of color matching, chemical equation, Github Repo, Zhihu problem. (P.S. except that the picture is from Bing homepage, only ...

Posted by m00p4h on Mon, 04 Nov 2019 12:18:11 -0800

Tree -- implementation of attribute operation in general tree

1. The attribute operations in the tree are: 1, the number of nodes in the tree, the height in the tree, and the degree of the tree;        2. Number of nodes in the tree: 1, define function: count(node) 1. Count the number of nodes in the tree with node as the root node; 2, recursive implementation; 2. Function code implementation: ...

Posted by kriss37 on Mon, 04 Nov 2019 09:49:51 -0800