ios table sections and rows all locked to top of table - ios

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.

Related

iPhone app is running at iPhone 4 size with black bars after update

Previously the app supported the iPhone 5s/SE screen and iPhone 6-8 screens (not the plus sizes), this was done using launch images. So on Plus sized devices and iPhone X* devices it would display black bars above and below the app.
We then released an update where among other things a launch storyboard was added. All through the development of this update the screen size worked perfectly on every device we had. However after releasing the update on the App Store, for some users, the app now shows at iPhone 4 size (height/width ratio is 1.5). So now affected users on an SE have the black bars, and X* users have bigger black bars the before. This doesn't seem to affect everyone, and we can't replicate on our devices.
The deployment target is 10, so there should be no reason to use the old launch images method. And the update is definitely using a storyboard for the launch screens.
Has a similar thing happened to anyone else? Or is there something you have to do specially when releasing an update that moves to the storyboard method from individual launch images?
All the existing answers either say to make sure you have the correct screenshots, or use a xib/storyboard. We don't have any screenshots and are definitely using a storyboard.
EDIT: now after a few hours of restarting the app users are starting to see the correct sizes, implying it’s an iOS caching issue.
I have experienced it lot before.
Reason: iOS commonly keeps launch screens of all apps in its own cache system, So, unless your app get loaded,it can show that launch images/screen to user from cache. Now, As your app was previously having launch images and now moved to storyboard, it makes this problem.
Also note that, iOS always render your app in screensize which it have in launchscreen, thats why you are seeing black bars at top and bottom.
Way to reproduce: This will happen everytime you update your launch screen. Try adding some label or some other component to your launchscreen.storyboard and install it. You will not see updated launch screen for some duration.
Best Solution(It works almost for all): Just update your app's version number and install on the device. After version number get updated, it will take new updated resources.
If above solution didn't worked for you, then you can try for these alternate solutions:
Solution 01: Your user might have to delete older app and install new one
Solution 02: Your user needed to reboot their device after update.
Solution 03: iOS System itself refreshes its own cache after certain interval, so your customers might face issue just after updating... but will get resolved automatically after some duration(around 3-4 hours).
I experienced similar issues with LaunchScreen Storyboard changes and when switching from Launch Images. It is an iOS Bug, sometimes you need to reboot the device in order to see the correct LaunchScreen when changes are made, it is very odd and difficult to reproduce.
Most probably there is nothing wrong with your App...
Yes Jonathan, it has happened to others as well.
Sadly it seems that this is a real iOS issue, the problem is real (those negationists please believe).
I called the Apple Support and the developer/support staff that I talked with, seemed aware and/or heard the issue, although the response was unclear I did, nonetheless, report the issue properly. "They will check it out". Typical Apple sideways answer...
Now, current solutions:
It seems that what has worked is the On/off iPhone solution, drastic and heavily inconvenient but currently it's the only workaround "tested".
I am deeply sorry for not solving you inquire straight, but I think this affair is beyond any of us developers field of action, it seems (yet to confirm) an OS problem, which Apple and only Apple can fix for real.

App runs in simulator but removes stack x/y constraints after running on device

Wondering if anyone else has run into this problem and knows how to solve it. I have 3 vertical stack views, each consisting of a text view and label. They are all contained in one super stack view. The app runs fine for each device on the simmulator. When I connect my iphone and run on that device, I get missing constraints in the storyboard and the fields are all misaligned. The strange thing is that even with the alignment errors, the app runs fine in all the simulated devices and my actual iPhone, with the alignment being perfect - not as seen on the storyboard. I have tried the various options - update constraints, update frames, reset to suggested constraints, etc. - but it doesn't get back to where it should be. I am working with a copy of my project. I did File-Duplicate in the finder. It is really annoying because each time I have to backtrack.
Picture of errors and messy screen
I was researching similar problems on the web and came across one post/article that mentioned downloading something called "Duplicate" to copy folders from the finder vs directly from the finder.
I downloaded it and followed instructions to copy the same folder my problem app was copied from. I ran it on all the simulator devices and my own iPhone without any issues. I'm hoping the problem was that everything wasn't copied over correctly from finder the first time and that now, using Duplicate, it is and it resolves the problem. I'll add to this if the subject problem emerges again.
link to the post I found

UIImageView not loading image on all devices

This is my first time posting a questions here. So far I have been able to find the solution to all issues I have had. For 2 weeks now I'm struggling with a strange issue.
Issue Description:
I'm developing an universal application for iOS 5+. I'm having an issue with one image, which is not displayed everywhere. This is my background image and it displays correctly on all iPhones (3GS, 4, 4S, 5) and iPad retina. Unfortunately there are 3 screens on which it doesn't displays. This happens only on iPad without Retina display. The images appears on the other screens and I can't determine what is different so it doesn't display on these 3 screens.
What have I tested:
I have tried to delete the image and add it again - nothing changes.
I have double checked the naming of the file - everything is fine.
I have tried to load the image in another view controller and it loads.
I have cleaned my application and deleted it from all devices - issue stays.
If you happen to have any suggestions on what can be the cause of that strange behavior please give me a hint.
OK, since your image is already in the project and the target, here's a couple of other reasons which could cause the issue
The file extension and the type of file don't match. Try saving the in another format and use it in the app. See if that works
You mentioned this is a universal app? Are you naming the images correctly (image.png, image#2x.png, image~ipad.png and image#2x~ipad.png

iOS XCode Storyboard controls moved and now look strange in simulator

I am following the course on iOS through iTunes university and working on the calculator project. I moved the controls on the storyboard to make room for another control at the top. Everything looks fine on the storyboard but when run in the simulator, controls are bunch up, on top of each other, and some are clearly off the top of the simulator screen. This leads to the following very related questions.
How does one move controls around on the storyboard? I went to the size inspector of each control (buttons in my case) and changed the 'Y' value (increased it by 10). I did this for each control. I didn't think about it as I was doing it because as I said, all looks fine on the storyboard. Is there a better way to move controls around? I could not figure out how to grab more than one control at a time and move them. Grabbing all and moving or all but one and moving would have been ideal.
I anticipate someone is going to say, "We need more info. " How do I show the storyboard? Is there a xml file somewhere? How is the storyboard saved? How should I show the results of the simulator?
In general, what the heck is going on? Why would things look so different in the simulator?
Is there a better forum/group to ask newbie questions about iOS programming?
My specs are these:
XCode 4.5.2
Ios simulator versions set to 6.0 and iPhone
Any other info needed? Thanks in advance,
Dave
Try setting your simulated device size to 'freeform' instead of 'inferred'. This screen is a bit smaller so the controls are no longer overlapping. The latest xcode sets it by default to ios6 (screen size of iPhone 5)
edit For a better insight in xcode IDE, please refer to the documentation provided by apple (includes screenshots for clarity)
https://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/000-About_Xcode/about.html#//apple_ref/doc/uid/TP40010215

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