ios 7 TableViewController cells cannot be shown completely - iphone

I tried to update one of my IOS6 app to IOS7 using Xcode 5 GM which was just released couple of days ago.
One of the main problem I met is that some of the table views (UITableViewController) cannot be shown correctly anymore after being recompiled by IOS7 SDK:
Some of them cannot shown the last cells completely: You can see half of the last cell right there, but cannot scroll down to see full of it; some others cannot show the first cells completely: half of the cells was hide and you need to draw down the table view to see it.
BTW, those problematic tableViewControllers are all embedded in tab bar controllers.
Could anybody help me with this? Thanks.
UPDATE:
I tried several ways, and here's my solution:
Delete the tab bar controllers, and add them back through editor->embed in->tab bar controller (I tried to drag out a tab bar controller from the object library directly, but that didn't fix the problem. Don't know why).
Re-link other view controllers to this new tab bar controller and run the app. Now, you probably see the first cell still cannot be show completely as I described before, but the last one can be shown correctly.
Go back to storyboard, select the tab bar controller and deselect "under top bars" in the attributes inspector. Run it again, everything works fine, at least for me.

I think it's not a bug but rather a UI design as intended. As you can see the overlap of Tabbar still have some see through effect.
As I dont want to resize my table view to fit specific above the Tabbar.
Workaround with last cell bottom padding or add in extra last cell with same height as Tabbar?

Related

Swift navigation bar animation issue

I am at a loss with what is potentially a simple fix.
I have a basic ViewController with a UINavigationController, and a UISearchBar embedded.
Basic view layout
When I PUSH a new UIViewController onto the Nav - I get a brief animation issue where a black background appears, and also the cancel button doesn't disappear.
Animation glitch
It's only brief, but annoying enough.
When I return back using the back button, the search bar reverts to white, and then switches to red.
Back display issue
I wondered if I had configured something wrong, so I created a fresh project and left everything with the defaults. Yet I get the same issue.
Stripped back and the same issue
I'm using xCode 9.3 - with swift 4.1
Any ideas?
Check the extendedLayout settings of your view controllers (these can be set in code or in the storyboard editor). They need to be the same for both view controllers or you'll get this animation glitch.
In your case the problem might be the embedded search bar. It seems to be present only for one of the view controllers. You've got navigation bars with two different heights because of that. The framework doesn't respond well to that...

ios/iphone/storyboard: Barbuttons on toolbar not displaying

For some reason, the lower bar button items, Select All and Select None shown in the image from storyboard below are not displaying. I copied this configuration from another app where it works fine. Can't for the life of me figure out what could be the problem. The upper buttons, Cancel and Done do display. This VC is presented modally.
Has anyone seen this before or can you suggest what could be wrong?
The bar buttons are not outlets. They are wired to action methods, however, since they do not display in the app, I can't tell if they work.
The other thing that is not working properly here is that the tableview is empty. However, for now I'd be content to see the lower bar button items. I've tried changing the table view size to no avail.
Thanks in advance for any suggestions
storyboard:
What displays on phone:

Items change position after tab being changed

I ran into a problem while programming on the new Xcode 5 and iOS 7.
The App is basically some ViewControllers showing different information and they are linked with a TabBarController.
Now, the problem is, that whenever I compile, at first the initial view appears as it should, but when I switch to another tab and go back the view changes.
I have set up the constraints so that the lower part should stick to the bottom and the MapView changes height according to the screen size.

A View and Scroll View inside a view

I am building a Calendar app. I have Navigation based app template. Navigation controller has segmented control having namely Daily and Weekly segments.
Upon clicking the segments i show the relevant View having status bar, navigation controller and bottom toolbar. This is working fine.
My daily view will have a top view and scrollView. Top view will have previous button, next button and date in label. When i add only scrollView inside my dailyView than it works fine, but upon adding top View it gives crash when i try to scroll the scrollView.
Please suggest is it possible? Else, what could be a better alternative? I even tried adding a second navigation bar (this time using the Interface Builder), button than i am not able to change the date in label.
Please let me know if more clarity is required.
I see you have two questions:
Please suggest is it possible? Else, what could be a better alternative?
So I'll go ahead and answer those questions:
What you're trying to do is possible, so there's no need to look for an alternative.
However, I guess the real question is: "Why is it crashing?" and I certainly would answer that, but without crash logs and(/or) code it's nearly impossible to give you a usable answer.

Iphone 3.0 More tab - not displaying when run in simulator

I have 5 views contained in my TabBarController, each view has a navigationController inside of it (Did this all through IB) and for some reason instead of the more tab displaying the 5th tab is shown. I have double-checked that all my nibs are declared and connections are created correctly in IB. In fact, all the views show when i click on the tab even the 5th. Anyone have any ideas?
Apple has apparently decided that 5 tabs is the most that should be visible at one time in the UITabBar. If you have 5 or fewer, it just shows them all; thus the MORE tab is not needed, and will not be visible.
Ok, so I got it,pretty strange..as soon as i put a sixth view controller under the tabbarcontroller the more tab shows up.Weird...
could have sworn that in the latest docs it still says more than 4...maybe I misread something...