Swift UITableViewCell Separator Missing When Application run on iPhone - ios

I am having a lot of trouble getting my UITableViewCell separator to work. I have seen the many questions regarding how it is missing and have attempted many of those solutions to no luck...
I have the UITableViewCell separator working everytime in the Xcode simulator but when I try to run the application on actual hardware it sometimes produces the the separator(if I run the application again it will show up or if I go to a new view and then return back to the UITableView the separators return.
I am using Xcode 7 and creating the app for iOS9
Any advice/help would be appreciated. Thank you.

Related

UITableView separator issue in Simulator

A simple code is made in Objective-C like showing some data in a tableView. But when I run the code in iPhone 6 plus/7 Plus, separators are missing and while scrolling its like flashing. I don't know about the real device.
I tried to find a solution and I found that changing native resolution will help me.But I don't know how to do. Can anyone guide me step by step?
Or any solution?
Not an issue!
Your code will execute perfectly on the real device.
This is not an issue.
UITableView separator is shown in your simulator.
If your simulator was zoomed out means that will not visible thickness. You can zoom in your simulator and check it. (click to zoom Window + 1)
In Real devices, the separator will defiantly show.

Why does iPhone layout look different in xCode and in simulator?

I've been developing a modified version of an iPad application, and try though I might, I've been unable to resolve the following issue.
Inteface Builder:
I'm using a UITableView to display cells of information, however the cells have huge gaps between them in the iPad emulator.
Simulator:
If anyone has any ideas that I could try, I'd be happy to test out any different ideas to resolve the issue.
The problem was due to my controller, and the TableView function.
Some of my cells were throwing errors, and so caused the returned cell to show as the ugly black space shown above.

tableview Cell separator line not showing in ios development using swift 2.0. xcode 7

I am trying to make an ios app which has tableview in it.
When I was developing using xcode 7.0.1 it was showing tableview cells separator line Black thin line.
After I updated with Xcode 7.1.1 , its not showing cell separator lines.
I tried 3 things like -
Tried All the settings in the right panel of xcode to show cell
separator line.
Tried setting up the Cell Line Separator using code in DidLoad method
creating new SingleViewApp as well, in that also its not coming. Nothing solves the issue.
I believe either its bug in xcode 7.1.1 or I am done some wrong global settings in xcode, Because for new apps also its not showing.
Please suggest me some solution.
It is possibly a bug when your simulator is scaled to 50% . I scaled the simulator window to 75% (CMD+2) or 100% (CMD+1) and that seems to show the separator lines.

ios table sections and rows all locked to top of table

My ios table has started bugging out and I'm stumped. All the sections and rows in the table are locking to the very top of the table view. This only seems to happen on my device (have tested on a few - we all have latest ios 7). I've reinstalled the app a few times but the problem remains for me.
I'm using a modified version of this bubble chat: http://alexbarinov.github.io/UIBubbleTableView/
Here is a screenshot that shows the problem:
https://www.dropbox.com/s/q2hwbxe2923q3wp/IMG_0598.jpg
Each message is a table section with 2 rows - one for the header (the white text) and one for the speech bubble.
I can post more code if required, but can anyone tell me how an ios table view could be broken like this?
UPDATE: App was just rejected by apple because the same issue happened for them as well, using an iPad Air. I am wondering if this is a bug specific to the Air because it doesn't happen on other devices running the same iOS.
Thanks
Sometimes you change something and it only affects fresh installs or only works on existing installs, including layouts. You could test on a fresh simulator that has been reset prior to running on it. You could also install it on an existing device on a different name so it will be a new app with new settings, a different install directory and so on.
Found the problem. The return data type on tableView:heightForRowAtIndexPath was set to float - should have been CGFloat.

Cells content appearing on simulator and iPhone but not on iPad

I have two quite simple custom cells in separate tableViews that since I ported my project to iOS 6 just show their content on the simulator and the iPhone but not on the iPad. What is strange is that even some static objects I added to the cell or even a coloring of the background do not show up either like there were some link to the storyboard missing that curiously only show up in the device.
What could it be and how could I check better what is going on?
As a matter of fact I was testing two different localizations in the simulator and iPad by being tricked by a string I forgot translating. The problem boiled down to the the storyboard returning me an empty prototype so bringing my program to run an old piece of code that in that case created a new (empty) cell. Why the storyboard returned nil when asked for a prototype cell is still unclear; yet once I found that one localization worked, I copied that configuration to the other ones and everything returned back to order.

Resources