Working in Xamarin.ios (basically UIkit) and I have a UITableView with the Navigation title set. The title does not show when the table/screen is scrolled to the top. It only shows when you scroll down and it shows the title in the nav bar. Whats the best way to show the title when scrolled to the top but then have that title disappear behinf the nav bar title when scrolling?
pic 1: Should show title/header ontop of tableview, but it doesn't. It does show the right bar button item though
pic 2: when the user scrolls the tableview the navbar appears and it shows the title
It only shows the navbar title when scrolling through the tableview. But when not scrolling there is no "default" title.
Related
I wanted to add a left bar button item but it is shown at the middle, how can i fix it?
At the documentation it says 'A custom bar button item that displays on the left (or leading) edge of the navigation bar when the navigation item is the top item.', but it doesn't say anything about what should i do when i want the item displays on the left.
I tried add a bar button on the left but it displays on the middle
I added these 2 keys to hide status bar:
Status bar is initially hidden = YES
View controller-based status bar appearance = NO
It works great, but I realize that when clicking on the status bar area, we can actually click through the view underneath.
I have a UICollectionView behind the status bar area, and I can actually click on the collection cell. In the picture below, Cell #12 is right above Cell #16, and we can actually tap on upper right corner to trigger didSelectCell(atIndexPath.
How do I disable this "click through" behavior, and bring back the "auto scroll to top" behavior when tapping on status bar?
Try setting the UICollectionView top constraint to be constrained to the parent view safeAreaTopAnchor instead of the parent view topAnchor. That way you have the UICollectionView out of the way of the statusbar
I'm using the rotator tool to enable swipe up or down between accessibility elements with accessibility trait set to .header. This works fine - in both up and down directions for cells within a tableview. And it works fine when you transition from the first cell UP to the nav bar title. But if you then try to swipe DOWN from the nav bar title to the first cell, it says "heading not found" and remains stuck in the nav bar. Left / right swipes transition correctly across all elements.
Title view and uinavigationLargeTitleVIew are overlapping when I press back button to come back to this view
I have a search bar set as the title view in my navigation bar. In the initial view the search bar is evenly spaced in the middle with buttons on both sides. In this view the back button pushes the search bar so that it is uneven. I've tried getting rid of the text of the back button, but it still didn't work to spread the search bar out. Squished search bar image
I recently needed to solve the same issue. I ended up creating a UIBarButtonItem with the back button image asset, and setting that as the navigationItem.leftBarButtonItem. This button press then calls navigationController?.popViewController(animated: true) to pop the viewController off the stack