large-title

UINavigationBar with Large Titles - how to find extra height in iOS 11

巧了我就是萌 提交于 2021-02-07 06:07:04
问题 When using prefersLargeTitles for a UINavigationController 's UINavigationBar in iOS 11 , the nav bar increases height. The increase is from 44 to 96 on the iPhones I have checked, but I think those numbers can change per device (or at least we need to code as if they can). I want to programmatically find the 'extra' height - the height of the large titles area that is added beneath the traditional UINavigationBar when a large title is displayed. I can easily find the entire height of the bar

UINavigationBar with Large Titles - how to find extra height in iOS 11

无人久伴 提交于 2021-02-07 06:05:56
问题 When using prefersLargeTitles for a UINavigationController 's UINavigationBar in iOS 11 , the nav bar increases height. The increase is from 44 to 96 on the iPhones I have checked, but I think those numbers can change per device (or at least we need to code as if they can). I want to programmatically find the 'extra' height - the height of the large titles area that is added beneath the traditional UINavigationBar when a large title is displayed. I can easily find the entire height of the bar

Image for Navigation Bar with Large Title iOS 11

◇◆丶佛笑我妖孽 提交于 2020-12-27 07:45:29
问题 AppStore app has an icon with an image on the right side of the NabBar with Large Title: Would really appreciate if anyone knows how to implement it or ideas on how to do it. BTW: Setting an image for UIButton inside of UIBarButtonItem won't work. Tried already. The button sticks to the top of the screen: 回答1: After several hours of coding, I finally managed to make it work . I also decided to write a detailed tutorial : link. Follow it in case you prefer very detailed instructions. Demo:

How to set multi line Large title in navigation bar? ( New feature of iOS 11)

╄→гoц情女王★ 提交于 2019-12-17 15:39:33
问题 I am in process of adding large title in navigation bar in one of the application. The issue is title is little long so I will require to add two lines in large title. How can I add large title with two lines in navigation bar ? This is not about default navigation bar title ! This is about large title which is introduced in iOS 11 . So make sure you add suggestions by considering large title. Thanks 回答1: Based in @krunal answer, this is working for me: extension UIViewController { func

iOS 11 scroll to top when using large titles doesn't work properly

独自空忆成欢 提交于 2019-12-10 06:59:28
问题 When using large titles and tapping the status bar to scroll to the top of a UIScrollView or UITableView (probably also UICollectionView , haven't tested this) it always goes a little too far. I have refresh enabled on my TableView and when tapping the status bar it appears like this and stays that way until I tap the screen. I have a ScrollView in another ViewController and if I tap the status bar there it also scrolls a little bit too far, making the navigation bar too tall. This also

Programmatic beginRefreshing() on iOS11 has problems with largeTitles mode

旧巷老猫 提交于 2019-12-07 13:24:51
问题 We have found what seems to be a bug in UIKit but wanted to post here to see if anyone else has this problem or found a solution. We're trying to use the new iOS11 large titles and hoisted search bar/refreshcontrol. We seemed to have found a problem where the root viewController of the navigation stack shows a minor display issue (problem A) but once another viewcontroller is pushed onto the navigation stack, the display goes nuts (problem B): Things to note: The problem is worse on the 2nd

Programmatic beginRefreshing() on iOS11 has problems with largeTitles mode

孤者浪人 提交于 2019-12-05 23:01:22
We have found what seems to be a bug in UIKit but wanted to post here to see if anyone else has this problem or found a solution. We're trying to use the new iOS11 large titles and hoisted search bar/refreshcontrol. We seemed to have found a problem where the root viewController of the navigation stack shows a minor display issue (problem A) but once another viewcontroller is pushed onto the navigation stack, the display goes nuts (problem B): Things to note: The problem is worse on the 2nd VC in the stack rather than the 1st The refreshControl is not the green color the code sets it to the

iOS 11 scroll to top when using large titles doesn't work properly

被刻印的时光 ゝ 提交于 2019-12-05 12:45:33
When using large titles and tapping the status bar to scroll to the top of a UIScrollView or UITableView (probably also UICollectionView , haven't tested this) it always goes a little too far. I have refresh enabled on my TableView and when tapping the status bar it appears like this and stays that way until I tap the screen. I have a ScrollView in another ViewController and if I tap the status bar there it also scrolls a little bit too far, making the navigation bar too tall. This also returns to normal when I tap somewhere or scroll a tiny bit. Normal: After I tapped the status bar: This

iOS 11 large navigation bar title unexpected velocity

☆樱花仙子☆ 提交于 2019-11-27 01:14:31
问题 I am trying to implement the iOS 11 native large navigation bar title on my new application. By calling below functions in viewDidLoad(): navigationController?.navigationBar.prefersLargeTitles = true navigationController?.navigationItem.largeTitleDisplayMode = .always I do get what I desired. But, when I start scrolling up (the only view inside the main view is a scroll view), the scrolling makes the large title disappear at a faster velocity than actual scroll with the finger. (that is, if I