sap.uxap.ObjectPageLayout jumping buttons due to scrollbar - sapui5

Example:
https://plnkr.co/edit/213BfJ4Q0shqBqaK
If there is no scollbar at the 2nd section for you, you might have a bigger screen than me and need to add a few more buttons.
If you set the useIconTabBar property of the ObjectPageLayout to true and have a section that needs scrolling but another that does not, the minimaize and pin button of the ObjectPageLayout Header are displaced each time you navigate between sections.
The scroll bar is across both header and content forcing the header to reajust its center, making the buttons move. This reajustment looks out of place in the otherwise static behavior of the header.
Is there a way to restrict the scrolling to just the content area of the ObjectPageLayout or fix the horizontal position of those buttons?
If there is a need to navigate often between the Sections the displacement can be very irretatiing for an enduser.

Related

how to make a sticky headerTableView while having numerous headers in sections?

A goal of mine is to have an appearing/disappearing headerTableView - show on scroll up, hide on scroll down. I have tried setting tableView style to plain but then my section view headers are sticky and not just the headerTableView. Does anyone have an idea how to have an always showing/disappearing headerTableView regardless of scroll position (not just when I'm on top)?

How create collectionview header like instagram tags searching one?

Can anyone help me how this header can be implemented? Especially how it works during scrolling? Seems that when I scroll to bottom this header is pushed up like a cell, but when I scroll to top it's static and looks like a view over collection view.
Photos
1) INITIAL STATE
2) SCROLL TO TOP
I believe the header isn't part of the collection view at all, but a sibling, i.e. the both share the same superview.
The collection view is given a large content inset at the top to make room for the header. Then, as the collection view scrolls, the scroll events are captured via delegate method and used to shrink or expand the header to make it appear as if it's sliding beneath the navBar.
(For reasons that have to do with the navBar translucency, it's not actually pushed under the navBar, but that's not immediately relevant to this question)

iOS Interface Builder lock views to right of their table cells

In the form pictured below, as you can see, all of the items are aligned to the right in portrait mode. However, in landscape mode, the text box and switch do not move to the right with the detail items. The detail cells use an apple template, while the ones with the text box and switch are custom cells. How do I set it up in interface builder so that the switch and text boxes move over to the right?
I've been messing with this for a while with no success and haven't found any useful information googling.
If you're using a custom cell, you need to set the autosizing mask to keep the right margin fixed on the views you want to align right, something like this:

UITextView hiding some text

I have a UITextView with the Height of 150. I fill up the content dynamically. So, sometime I need to scroll to see the text. But last 3 lines of the content is hidden, it only shows when I scroll the content up. It will hide once I leave the scroll.
Any help to see all the content on the screen with UITextView?
Are you setting the text programmatically after the view is loaded? If so, you may need to resize the content view.
You can also check your nib to make sure the textview isn't hanging off the edge of its parent view ever so slightly.
Finally, you can try resizing the content view to be about 15 pixels higher than it already is.
I would put 2 UITextView inside a UIScrollView. I would then place then accordingly: first the one you want always to be visible and secondly the one you want to stay hidden unless the user scrolls up. To do that, just add then to the UIScrollView and then tweak with the contentSize until you find what you need.

Multiple UITextFields grouped together like a UITableView section

I'm looking for a clean way to implement a login screen in my iPhone application. I'd like it to appear as a grouped UITableView section with rounded corners and a separator line below between rows (like e.g. the sections in the Settings app). However, I'd like to give it a slightly smaller cornerRadius than the default setting of a UITableView section.
Another thing I'd like to do in that screen is to add a "register as new user" button which causes the whole screen to slide up, presenting the registration screen. There will be a background image that spans both screens vertically and should slide up with together with the content.
I was first thinking to just make a UITableView, set it to grouped, add two sections (one for login and one for registration), add some space between them and disable manual scrolling on the UITableView. However, I found that putting a background image correctly behind a UITableView and to make that scroll together with its content is a bit tricky..
Perhaps I shouldn't be using a UITableView and just write some code myself that can wrap multiple views (each containing a label and a textfield) together into something that appears like a UITableView section? I've been searching around but surprisingly it appears that not too many others are trying to solve this same problem.
Any suggestions would be very welcome!
Sounds like a UITableView is overkill for what you need. I would just create a custom UIViewController and have it handle the layout of all of your subviews as well as any animation you desire.
Just have the parent view take up more space than the device's screen. Then, when you want everything to slide up, animate a change to that view's frame property.