The _ UIRecordArgumentOfInvocationAtIndex in iOS6.0 is abnormal.

Source: Internet
Author: User

Problems:

The following two types of custom UIBarButtonItem code are correct under iOS7:

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:@{NSForegroundColorAttributeName :[UIColor darkGrayColor]} forState:UIControlStateNormal];

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:@{@“UITextAttributeTextColor”:[UIColor darkGrayColor]} forState:UIControlStateNormal];


However, when you open some built-in ViewController in iOS (for example, preview QLPreviewController in pdf), The _ UIRecordArgumentOfInvocationAtIndex exception occurs. Refer to the post in similar cases in StackOverflow. It turns out to be a Bug in iOS SDK. The following simple changes can help you solve the problem. Maybe this episode is part of programming fun.

Solution:After using the following methods, the problem is solved:

[[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:@{UITextAttributeTextColor:[UIColor darkGrayColor]} forState:UIControlStateNormal];

Reference: http://stackoverflow.com/questions/14125378/uiappearence-support-for-ios-6-unexpected-results

Http://stackoverflow.com/questions/19863972/mfmailcomposeviewcontroller-crashes-because-of-global-appearance-properties-on-i

Http://stackoverflow.com/questions/22489828/adbannerview-crashes-app-when-it-is-clicked

Http://stackoverflow.com/questions/12567708/monotouch-ios-6-crash-when-using-mfmailcomposeviewcontroller

Related Article

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.