lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
246 stars 17 forks source link

32912789: Subviews of UINavigationBar don't obey view frame height #17923

Open openradar-mirror opened 7 years ago

openradar-mirror commented 7 years ago

Description

Area: UIKit

Summary: I have a view controller in my app that places a UINavigationBar sized to the height of the system status bar in order to make sure the content scrolling beneath it doesn't conflict with the status bar.

In iOS 11 beta 1 and 2, when I set the frame of the UINavigationBar, even if I explicitly set the height to 20 points, the size of the navigation bar is much higher than that.

Steps to Reproduce: 1) Add a full-screen UIView to the screen, with the iOS status bar visible. 2) Add a UINavigationBar sized to fit the frame of the status bar, by default 20 points high.

Expected Results: The navigation bar and its subviews to align to the size of the frame. If the frame is set as 20 points high, the navigation bar should be 20 points.

Observed Results: The navigation bar appears to be twice as tall as it should be.

Looking at the view breakout in Xcode, it looks like the frame of the UINavigationBar is being set properly, however the private subviews in it are not.

Version: iOS 11 beta 2

Notes: Looking at the view breakout in Xcode, it looks like the frame of the UINavigationBar is being set properly, however the private subviews in it are not.

- Product Version: 11.0 Created: 2017-07-14T05:27:11.029480 Originated: 2017-06-22T08:43:00 Open Radar Link: http://www.openradar.me/32912789

openradar-mirror commented 7 years ago

Modified: 2017-08-11T03:27:05.918200