Grouped static table background issue - ios

Is there a way how to remove those two "darker" -ish places above and beneath active table? I have already tinkered with Opaque options without any success.
Note: The screenshot is taken while "dragging down".

Michal, I'm having trouble understanding how this is happening. I tried a similar setup on one of my view controllers in a storyboard. On the left you can see the result and on the right you can see how it's set up in the storyboard. As you can see, this is a standard UITableView with static cells without the "dark background" issue. This also doesn't appear while dragging down.
This could be caused by something that's wrong with your setup. Could you elaborate so I can help you?

Related

Weird UIStoryBoard Behavior

I am trying to put a UIImageview on top, and two UITextFields follow underneath it. All are confined with Constraints, and it was working fine a few hours ago. But Something weird is happening now. I run the app, and the View comes around but there is no ImageView or where the UITextFields were supposed to be, they aren't visible there anymore, but when i click on that position, the Keyboard pops out, which means there are both UITextFields here but somehow can't be seen. I've cleaned, deleted derived data etc but nothing is coming around. Any idea?
So here are two snapshots that explains that the image "launchSplash" is coming over the other elements. How could I make it go back?
Thank you everyone for helping me out here, it was a mere change or hierarchy of in my Storyboard UI. I didn't put them in the order required and was experiencing this bug. Here are attached snapshots of the new working order of elements in my View Controller.
Thanks again for all your help, Inspecting sure is helpful and fun :)

UITableView Partially Blank in Storyboard

When trying to view a larger UITableView inside of a UIViewController in the storyboard, I can only see/edit the top most cells from the table. The moment I scroll further down the cells are all blank. This is purely for storyboard, the code works fine when running, but any cells in the storyboard that are further down a tableview I can no longer edit since they show as blank.
Here's an example to illustrate
As can be seen from the shift right click, I can't even select the cells that are there.
I know and have experienced problems such as not being able to scroll at all before, such as this, but this is different as I can scroll down but cannot see the rest of the cells of my tableview. Has anyone else ran into this problem, and would know a solution? It seems like it may have something to do with Xcode 7, as I recently upgraded to it.
Although not ideal, I've found a few work arounds for this problem. One solution is to make a temporary UIViewController with a UITableView, and then drag cells into the temp UIViewController until the cell you want to edit is visible. Once you've changed it, drag all the cells in the temporary view controller back into their correct controller. This is extremely hacky, but so far is the only way I've found to visibly see the cell.
Another thing that can be done is that the cells are still editable in the document outline, meaning constraints and elements can still be modified from there. However, it is difficult, as I wasn't able to see the cells being edited, they still appear to be blank.
Hopefully someone else finds/knows of a solution to this and can post it, I'll leave these two workarounds up though they're far from ideal.

IOS Scrollable View inside another ScrollView

I need to implement this screen and I wonder if anyone can help me with ideas to solve some scenarios, basically the screen will contain a parallax effect in the top image, the entire screen must be scrollable, the problem I am faced when designing this screen It is the way I see I need to have a scrollview and a tableview that generates me the trouble of having the scrolls in the same direction.
I've read several post here about the problem of having scroll inside scroll for example: Nested UITableView inside another nested table , and what I want are actually ideas that can help me implement the screen below.
I just need suggestions of good practice, no one needs to worry about post code unless some lib to help with the problem or something.
I appreciate any help.
I finally solved my problem, I implemented a solution based on ParallaxTableView and is-it-possible-to-add-uitableview-within-a-uitableviewcell
And here is my project : UITableViewHeader
The trick on that (DEPENDS IF YOU REALLY WANT THAT BEHAVIOR) is having the image on the table view header. there are plenty of tutorials on github with sample implementation also.
e.g that one

Can two buttons be touching in XCode 6?

I am new to the iOS development world so please be gentle if this a "Stupid" question. The project I am working on has two buttons that allows to swap between viewing of 2 different tables. Our users have stated that they would like a segmented controller if possible. This is just a "Nice to Have" option they wanted.
What we decided to do is fake the segmented controller by pushing the buttons against each other to give the same look to the user. But the problem is, even though the buttons are together, not overlapping, in the storyboard there is still whitespace between them when the simulator runs.
Any ideas on how to accomplish this task or is it impossible to eliminate the whitespace between buttons?
Thanks in advance.
It is possible to have no white space between buttons, although it seems as though you are going through a lot of trouble to replicate the "nice to have" functionality of the segmentControl when it is much simpler to implement a segmented control to do the things you are trying to do.
Getting past that, in the storyboard, add a horizontal spacing constraint between the two buttons and make sure the constant for the constraint is set to 0.

Double grid lines on drag?

I have a table with a search bar. I find that when the search interface is dismissed, sometimes double grid lines appear in the bottom half of the grid. One set moves with the finger as you move the table, the other set remains pinned to the screen.
This looks like this:
Reproducing this takes a lot of effort, so I've uploaded a small test project to github.
I've also prepared a QuickTime movie of the bug in action:
The key points seem to be:
Table sections are in use.
A search that returns a small subset of rows.
Things I've tried:
Setting the search result table's rowHeight.
Setting the backgroundColor of both tables and all cells to [UIColor whiteColor].
Tried reloadData on the search results table view instead of self.tableView in updateSearchResults. (This is probably what I should be doing, but it didn't help with this problem.)
Does anyone have any insight as to what's happening here? And, of course, how to fix it.
I ended up using a Developer Technical Support incident for this.
And so, for posterity: This is caused by working at the wrong level; instead of working with the UISearchBar messages, work with the UISearchBarController messages.

Resources