Open openradar-mirror opened 7 years ago
i am facing same issue app crashes in app delegate in this line UITabBarItem.appearance().imageInsets = UIEdgeInsets(top:0, left: 0, bottom: 11, right: 0)
i am facing same issue app crashes in app delegate in this line UITabBarItem.appearance().imageInsets = UIEdgeInsets(top:0, left: 0, bottom: 11, right: 0)
i also encounter this problem,too.
UITabBarItem *tabBar = [UITabBarItem appearance];
[tabBar setImageInsets:UIEdgeInsetsMake(16, 0, 0, 0)];
Have you slove this problem?
Description
Summary: When settings tabBarItem.imageInsets via Appearance API the application crashes and suggests creating a Radar.
Steps to Reproduce: Change the tabBarItem.imageInsets value via the Appearance API.
Expected Results: Doesn’t crash
Actual Results: Crashes
Regression: iOS 11, Simulator iPhone 8
Notes:
The following Console output suggested to create a Radar, however the attached project demonstrates the issue with a full backtrace and is 100% reproducible.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Please file a radar on UIKit with this log if you see this assertion. selectorString = setImageInsets:, exercisedImplementations = { "_setTitlePositionAdjustment:" = ( ); "setBackgroundColor:" = ( ); "setImageInsets:" = ( ); }'
- Product Version: iOS 11 Created: 2017-10-27T14:56:37.261870 Originated: 2017-10-27T00:00:00 Open Radar Link: http://www.openradar.me/35220654