unexpected view in scroll view in swift - ios

as I'm trying to learn swift in this part I'm learning scroll view.The WHITE color right under the red color(In the circle) is the thing which is not expected to be there. Does anybody know what is wrong?

I turned off the TRANSLUCENT in the navigation controller and it removed the white space! I don't know why but it did.

Related

Swift Unwanted Space in TableView Presented Modally

A picture is worth thousand words in this case. I have a tableview present modally onclick from other view controller (with one navigation controller in between for the navigation bar, if that is important to you). Somehow there is some strange, (1) gray space at the top right under the navigation bar overlapping on top of the tableview, and (2)gray space near the bottom of the tableview right below the last cell with button, as shown in cap screen. I have completely no idea what that is.
I have another project which I use almost completely same setting for the tableview and these two gray bars do not occur. So I feel quite strange as to how that happen.
Can anyone enlighten me on this? I don't even know how to call these two gray bars here.
If scroll to top, the two problematic areas appear a bit differently, please see can screen below. It feels like something due to a same problem which I don't know what it is.

How do I remove the shadows on the top and bottom of UITableView?

I am using UIVisualEffectsView (With Vibrancy) through the IB. I cant seem to get rid of these shadows.
Update: Those aren't shadows. When a part of the cell becomes invisble, the invisible part is blurred (hence, black) and not the previous content
I have no code related to shadows
I have disabled tableview bounce
I have tried to set the layer shadowOpacity to 0 in all tableviewcell subviews
Please tell me if I need to provide more information to clarify my doubt.
Thanks a ton!
Solved.
I moved my tableview under the navigation bar and tab bar and then set them to translucent. Now the shadow(like) thing isnt visible.

White bar on top of search bar in popover

I have this weird top white bar above the search bar(on the right side). When I tap the button again to close the popover it will turn black, so I don't know if it is the popover background color or something else. Also, this happens only on iOS 9 Some help would be much appreciated.
EDIT: The problem is that I want that white bar removed, not that it's turning black
If anyone has this same problem, here is how I got rid of that top white bar. I just changed UIPopoverArrowDirectionDown to UIPopoverArrowDirectionAny where I was doing the presentPopoverFromRect

Weird grey tint in top right of screen on navigation segue

I have a strange, unwanted graphic effect when I navigate to and from views. There is a temporary grey tint in the top right of the screen. As it's difficult to describe, I made a short screen capture of what is happening.
View it here:
https://www.youtube.com/watch?v=JL05q3dp0n4&feature=youtu.be
I was just curious if any of you have seen this and/or know where I can look to modify/get rid of this behavior?
Thanks so much,
Jared
Alright, I figured it out. It had to do with my navigation bar being translucent and one of my covered background layers being grey. I checked off 'Translucent' on my navigation bar and it fixed it.

Strange black dim under UINavigationBar

Recently I've faced a strange thing in my app. I don't know if this is a bug but it's annoying.
I've a view hierarchy like on the screenshot below:
... and when I move my app to the background (tapping on the home button) there appears a black dim under UINavigationBar. Of course it stays in the task-switching mode (screenshot below). I don't know what caused this bug and of course I don't know how to get rid of this.
I wasn't able to fix this problem directly but as I said it is a problem with hierarchy and I'll try to explain it just the way I understand it so if I'm wrong, don't hasitate to correct me!
UIView called Groups is filling only the space under the UINavigationBar. In that case there is nothing under the bar. So why is it displaying this dim? I guess because of the native blur effect under UINavigationBar.
So how did I manage to deal with this without changing the view hierarchy? I've changed the size of UIView to cover whole window and because UIView has some backround set the dim effect disappeared. This operation is easy to achieve. Just by selecting Extended edges Under Top Bars option in Attributes Inspector of View Controller

Resources