IOS8 UiTableViewController grouped tableView like iOS6 style wrong left right margin - ios

i found this guide for make grouped table view with iOS6 style:
ios7 grouped rounded tableview but if i apply this code in UITableViewController i have a wrong lateral margins to view for my cells.
i need use UiTableViewController instead of UiViewController with TableView for using refresh table, for automatic scroll cell with textfield when keyboard appears and more...
any idea?
this is my result:
but I would like to get this:

Why not embed your UITableViewController into another UIViewController, as a child view controller?
You will be able to easily change the margins of your container view.

Related

Adding subview to UITableViewController that covers only the bottom half of the view

I'd like to achieve the following look, when clicking on the email envelope button a UIViewController that has custom size to fit width of screen and half the height of screen will "fly up" from button and cover some rows until it's closed.
so if this is the UITableView
after click on email envelope it will look like this
Try to use a simple UIViewController which adopts UITableViewDataSource and UITableViewDelegate for your custom UITableView instead of the build in UITableViewController. So you have a simple UIView as main view container (not a UITableView). On this UIView you can add any view you want, including an animated View which is drawn above your table.

UITableViewController, Storyboards and UIKeyboard

I am trying to create a UI just like Facebook's comment screen on mobile.
I got a UITableViewController on my storyboard. I need to insert a view docked to the bottom of the screen to place a text field. Since the tableview is taking the full screen, I can't do it on storyboard and I think I need to do it programmatically but how? Should I modify the constraints that stretch the tableview to the edges and insert the views or what?
Thanks.
You can always add table view to normal UIViewController and below it add another view.

change position and layout of table view and table view cell for iOS app in Swift

I have created a table view controller with a table view cell for my iOS app with storyboard in Xcode 6. In the cell I have an image and a label. At the top of the view controller I want to have a header and at the bottom I have a tab bar. That's my setup.
But now I want to change the position and the layout of the table view and the inherit cells, default they cover the whole screen. The table view should start below the header and should end above the tab bar. At the moment the cell content is displayed under the headline and the tab bar. Is it possible to set the positions of the table view and/or cell? And also I want to change the layout of the cells. I want to have some space between two cells and a corner radius.
THX!
This is an old "problem". If you want to use a UITableViewController, the table view will cover the whole screen. In fact the UIViewController's view property will be the table view.
If you want to have a table view and other views on the screen, you will have to use UIViewController and add two subviews to it's view: the header and the table view.
Do the following (which the UITableViewController would have done for you):
add the table view as an ivar;
have the class conform to UITableViewDelegate and UITableViewDataSource and
set it to the table view's delegate and datasource

iOS bottom align a TableView in TableViewController (StoryBoard)

Is it possible to bottom align a UITableView when using the base UITableViewController? I want to do this for a Modal with a Partial Curl transition.
If you are using a UITableViewController, it automatically makes the tableview full screen, and that can't be changed.
However, if you don't need a UITableViewController, you can do this with a standard UIViewController and just set the size of the UITableView (in the storyboard, or in code as appropriate).

UISegementController in top of UITableView

I would like to add a UISegmentController in the top of my UITableViewController, just like in the AppStore.
I have tried googleing this but either I am search for the wrong things, or too view have written about this.
How can I do this, keeping it in the top with a different design than the UINavigationBar.
For style add segmentCont.segmentedControlStyle=7; which is same as the picture style.
It may not be a UITableViewController. It might be just a UIViewController with a segment control at the top of the XIB and a tableview placed underneath the segment control. That way, you could scroll the table view without scrolling the segment control.
I believe that is a custom header cell for the tableview. You should start by created a custom header with your segmented control inside that.
I think that's a ToolBar with UISegmentedControl or just UISegmentedControl and UITableView under it. You can place them (UISegmentedControl + UITableViewController) on UIScrollView and disable scroll for UITableView. You should make appropriate contentSize for your scrollview.

Resources