In my code, I create a UINavigationBar by code and add this to my view, like:
bar.barTintColor = ...
[bar setBackgroundImage:... forBarMetrics:UIBarMetricsDefault];
[self.view addSubview:bar];
This works fine in iOS 13 and earlier version, but in iOS 14 beta version, all my settings of UINavigationBar not work and a UINavigationBar object is added to the view but all the necessary subviews of UINavigationBar such as UIBarBarkground and UINavigationBarContentView are gone.
To fix this problem, I change to init UINavigationBar form xib, but this way is more complicated and must keep a redundant xib file. So, please fix this bug in later iOS 14 version, Thanks.
Post
Replies
Boosts
Views
Activity
I try the new API "UIPasteControl" of iOS 16 beta and want to use the UIPasteControlDisplayModeLabelOnly display mode, but don't know how to change the language of the text, it is always English "Paste", but I want it show other Language, is it possible?