1.UIWindow Properties:
1>,-(void) Becomekeywindow; Override point for subclass. Don't call directly invoke window to make it a key window
2>,-(void) Resignkeywindow; Override point for subclass. Do not call directly calls the window to cancel the key window
3>,-(void) Makekeywindow; Make it a main window
4>,-(void) makekeyandvisible; Convenience. Most apps call this to show the main window and also make it key. Otherwise use view hidden property makes it the main window and displays
5>,-(void) Sendevent: (Uievent *) event; Called by UIApplication to dispatch events to views inside the window event intercept distribution to the specified View object
2.swift-wkwebview Interacting with H5:
74312211
Https://www.cnblogs.com/xuzb/p/9018661.html
3.Xcode code line count query:
Use the terminal to switch to the corresponding project directory:
Number of rows per file:
" *.M " " *.h " " *.xib " " *.c " |xargs wc-l
Total number of rows:
" *.M " " *.h " " *.xib " " *.c " " ^$ "|wc-l
4. Immersive:
Immersive is the previous Android, the status bar color automatically adapts to the same color as the navigation bar
When Android needed to install the XPOSE framework to achieve
The practical application of this concept is that the page extends to the status bar, and then the status bar color is consistent with the color on the page
5. Circular references :
Http://www.cocoachina.com/ios/20170206/18629.html
// Popup Setting print language let VCs = printsettingcontroller () = surebilldetailtype in = Bprint = model surework () } self.popup (CONTROLLER:VC, direction:. Center)
VC refers to the Block,block without reference to VC, so it will not be circular reference.
6. Correct use of Carthage:
https://www.jianshu.com/p/42118918177b
7. Cannot present controller:
Https://www.cnblogs.com/Rinpe/p/5669903.html
Add a task to addoperation adding task to queue OperationQueue.main.addOperation { self.popup (CONTROLLER:VC, direction:. Center) }
8. Prevent present the current matte does not disappear: You can set up deferred processing
0.1 , execute: { SELF.PRESENTPRINTSETTINGVC () })
9.String Turn NSNumber:
Paytype.money = NSNumber (value:double (String.stringvalue (Textfield.text). Replacingoccurrences (Of: ",", with: "))!)
10. Delete a specific string:
Str.replacingoccurrences (of: ",", With: "")
11. Enter the amount only for a number or a decimal point:
Integer or decimal:
^[0-9]+ ([.] [0-9]+) {0,1}$
Swift Code Summary 5