Record the bugs in ios
Posts are occasionally updated. Some of the ios bugs files are recorded. Some of them have been resolved, some are still unresolved, and some are apple's own improvements, but they are indeed stuck to us.
UIWebView Memory leakage
There is no solution under ios7, and ios8.
UIFont copy crash in ios6
I don't know why. Maybe it's the black magic that the previous coder used.
The order of messages on the keyboard of UITextView and UITextField is different.
// UIKeyboardDidShowNotification ---> UITextViewTextDidBeginEditingNotification// UITextFieldTextDidBeginEditingNotification ---> UIKeyboardDidShowNotification
This is not a bug, but sometimes it is necessary to execute the DidBeginEditing message first to get the sender handler that causes the keyboard to pop up.
The code below under ios7 (sdk7.1) superview is UIDropShadowView, and under ios8 (sdk8.0) 2 is nil
[self presentViewController:vc animated:NO completion:^{ UIView *view = vc.view.superview; NSLog(@"1:%@", view); }]; UIView *view = vc.view.superview; NSLog(@"2:%@", view);
Generally, this attribute is used to modify the size of the rendered view. After sdk7, preferredContentSize can be used.
Ios7 does not rotate the window during screen conversion, and ios8.
This leads to the tragedy of some controls that depend on UIWindows.
Window. location
Use window in the ios8. location = "xxx: // yyy" can call an app registered with xxx, but under ios8, the url with '=' At the end cannot call the app.
Solution
var iThunderFrame; iThunderFrame = document.createElement("iframe"); iThunderFrame.setAttribute("src", sDownloadURL); iThunderFrame.setAttribute("style", "display:none;"); iThunderFrame.setAttribute("height", "0px"); iThunderFrame.setAttribute("width", "0px"); iThunderFrame.setAttribute("frameborder", "0"); document.body.appendChild(iThunderFrame); iThunderFrame.parentNode.removeChild(iThunderFrame);