UITabBarController safe area insets not working with iPad - uitabbarcontroller

I made a simple UITabBarController and have been using it on the iPhone with no problems. The tab bar has extra space at the bottom. I opened it up on the iPad and it seems like the tab bar is not respecting the safe area insets.
How do I most effectively and efficiently make this work?
Here's the iPhone tab bar that looks good:
Here's the iPad tab bar that doesn't look good:
[

Related

.tabViewStyle with animated swiping of tabs

Is it possible somehow to use the .tabViewStyle(.page) for animating swiping between tabs but with a look as the default style?
Basically I want the animated tab swiping but not the tiny centered tab icons that comes as a side effect of using .page instead of the default TabView.
The page feature seems more for swiping similar objects, not different tabs, but the swipe animation looks great, which is what I'm after.
Thanks!
Marcus

MFC VC++: How to remove blank space between the Window caption and Client area

I am developing a desktop app using MFC. The following image shows the current state of the app's window top part. The area marked in red is unnecessary and I want to remove it.
How can I remove that space or atleast change the color to match the rest of the window background?
More Info:
The App is using Ribbon UI. I have added the App button programmatically in onCreate of CMainFrame. Is it the bar that holds the Ribbon categories? I tried SetMenubarState(AFX_MVS_HIDDEN) thinking it was the menu bar, but that didn't work. Just changing its color is also acceptable.
Update:
I have managed to change the color of that ribbon strip, and removed the caption bar I used for showing the 'add' button. Now I need to figure out how to place the 'Add' button on the right side of the ribbon strip.

Can you implement a stacked ActionBar on a tablet?

I have implemented an ActionBar with my own custom icons. I have added tabs as well but I want these to appear below the ActionBar. At the moment they are displaying in the ActionBar. According to the Android Developers guide:
http://developer.android.com/guide/topics/ui/actionbar.html
when the screen is wide enough the tabs appear in the action bar
alongside the action buttons (such as when on a tablet, shown in
figure 7), while when on a narrow screen they appear in a separate bar
(known as the "stacked action bar", shown in figure 8)
Is it possible to implement a stacked action bar permanently so that the tabs are constantly displayed below the ActionBar across all devices?
If you want the same effect as in that image, you can use tabs. Here is a tutorial on how to implement them.

Android show ActionBar without navigation items

I would like to display the ActionBar alone without any navigation buttons(Home, back,etc) which are present at the bottom of the screen.
If I use '#android:style/Theme.NoTitleBar.Fullscreen', then even the ActionBar is not present.
Is there a way to display ONLY the ACTIONBAR without the navigation bar at the bottom?
For hiding the Navigation Bar, which is there only since API 14, see this

Python tk scrollbar behavior (Windows to blame?)

I'm coding a GUI in Python/Tkinter that includes a listbox with a scrollbar. I've gotten the scrollbar operating as expected (i.e. you can click and it scrolls up/down through the listbox contents), but something's off with the way scrollbar itself behaves. The image below should help clarify.
The listbox is sized for 8 lines and contains only 12, so first off the slider should be a lot larger (2/3 of the scrollbar length). Second, whenever I scroll down (regardless of how I do it), the slider stays 'glued' to the top of the bar. This prevents me from ever using the upward fast-scroll method where you click above the slider but below the arrow -- so upward scrolling is limited to using the arrow and going one line at a time. A downward fast-scroll works fine, although as noted the slider still stays 'glued' to the top. I can click and drag the slider down, but then it pops right back up to the top. Clicking the arrows (either up or down) works normally.
I've tried using the alternative scrollbar in ttk, but it's not really any better:
In this case the slider fills the entire bar and you can't fast-scroll either direction, up or down. Grab-and-drag works (somehow), the listbox scrolls but you get no visual cue as to how close you are to the top or bottom. The arrows (again) work normally.
In short it's usable, but just very glitchy and weird. Is all this just a known limitation with using Python/Tkinter on Windows OS? (My machine has Windows XP (32-bit) with SP 3. It's Python version 2.7.3.)
It sounds like you aren't configuring your scrollbars correctly. You have to make a two way connection. You need to configure the listbox to know about the scrollbar (so that it updates the thumb) and you need to configure the scrollbar to know about the listbox (so that it scrolls the contents of tne listbox).
The behaviour you describe makes it sound like you forgot to do the former. Perhaps if you show us your cod we can confirm that. Are you doing something like the following?
my_listbox.configure(yscrollcommand=my_scrollbar.set)
my_scrollbar.configure(command=my_listbox.yview)