Record the bugs that you encounter under iOS

Source: Internet
Author: User

Open a post not regularly updated, recorded the experience of the iOS bugs, some of them have been solved, some are still no solution, some are Apple's own improvements, but it really pits us

UIWebView memory leaks

There is no solution to the iOS7, iOS8 not seen
Uifont copy under IOS6 crash

I don't know why, maybe it was the black magic that coder used.

Uitextview and Uitextfield have different order of messages on the keyboard
// UIKeyboardDidShowNotification ---> UITextViewTextDidBeginEditingNotification// UITextFieldTextDidBeginEditingNotification ---> UIKeyboardDidShowNotification

This can not be considered a bug, but sometimes just want to execute didbeginediting message to get the pop-up keyboard sender embarrassed to do it?
The following code IOS7 below (sdk7.1) Superview is uidropshadowview,ios8 below (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);

The general use of this property is to modify the rendered view size, after SDK7 can be used Preferredcontentsize
iOS7 The window will not turn when the screen is turned, iOS8 rotation

This leads to some uiwindows-dependent controls that are tragic.

Window.location

In the iOS8 Web page with window.location= "xxx://yyy" can be adjusted to register the XXX app, but under iOS8, the end with ' = ' URL is not adjustable app.
Workaround

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);

Record the bugs that you encounter under iOS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.