Default appearance of static grouped UITableView with multiple sections - uitableview

Did Apple change default appearance of grouped cells in table ?
I defined static grouped UITableView with multiple sections in Storyboard, expected the cells to appear as in this tutorial:
http://www.appcoda.com/ios-static-table-view-storyboard/
However it looks like that:
Is there a way to change the appearance in storyboard (not programmatically), to show the grouped cells inside rounded corner boxes as in the tutorial ?

Check your phone, the "Settings" app uses a grouped type of table view.
Yes, since iOS7 (when iOS got redesigned) the shape of the grouped table view changed.
You're looking at an old tutorial with old screenshots.

Related

Swift How is a setting view implemented

I was looking through some setting page in apps and saw the setting page in trip advisor
And I wondered how is this implemented is it a stackview of buttons or table view cells? (front end)
Please note this is not a problem just a question on how is it done or idea behind just to expand my knowledge
There are two styles of table view. One is plain and the other is grouped. A plain tableView is used while huge data is displayed, i.e. show your contact list. A grouped tableView is used where data is in a group. Here the tableView is grouped. Each group is a section.
The UITableViewCell has many styles, custom, left detail, right details, subtitle, etc. Right detail is for some limited string data, where left is title and the answer is on the right of the screen. For example, the Language is a title for a question and the answer is shown on the right, English is the answer. The Autoplay Videos segmented control cell in the tableView is custom.
The left arrow is UITableViewCellAccessoryDisclosureIndicator showing that if you tap on the cell or the accessory then you will find more data.
It’s an tableview cell with more than one section. And tableview style is group.

Is is possible to control the speed and scrolling of a UITableView

I've got custom tableview cells that are 170 px tall. Including the table header I can see two complete cells and a portion of the third. When I scroll the tableview, the cells shift up but do not stop until a portion of the third is above the table.
Is it possible to change the way the table scrolls and allow me to see all of the third cell. A video illustrating the issue is available at https://youtu.be/iuhuR_wDe90
Images of the issue:
It seems you have enabled 'pagination' on your UITableView.
You can get rid of this in Interface Builder, in the Scroll View section there's an option called 'Paging Enabled' which should be switched off.
If you don't use storyboards, tableView.pagingEnabled = NO; will do the trick as well (though it is NO already by default).

TableView height change in Swift

I'm trying to find a way of making the height of a UITableView change depending on how many rows are in the table being displayed.
I've gone through the site for previous questions but none really come to any conclusion.
Language being used is Swift on iOS 8.
Thanks,
Anthony
Use tableFooterView to pin content to the bottom of a UITableView
EDIT:
The tableFooterView (and tableHederView) can be modified directly in Interface Builder by dragging a view below (or above) the prototype cell(s) in your table view.
I wanted to do this within the IB. The way around it was to drag a new view underneath the prototype cell that was already showing in the IB. Then I could change the size to suit my footer content and then just add the footer parts of the layout to that new view within the Table View.

Empty cells in InAppSettingsKit settings window

I need to show settings screen within my app, so I use InAppSettingsKit to implement this. I use storyboards in my app, so I created a UITableViewController with IASKAppSettingsViewController super class. In this class I didn't implement any other special methods except settingsViewControllerDidEnd:. The problem is I need to hide empty cells in my table view (I have only two parameters in settings, so the whole remaining screen is full of empty cells). It means that the remaining part of the screen should be just empty, without empty cells, and with grey background (as in Settings.app).
I can make UIView with empty frame as footer view of UITableView, but it's not the best solution - background color of footer remains to be white as in normal table view. What's the best way to limit number of cells?
I set the Style property for my UITableView to Grouped in Interface Builder, and it resolved my problem.

Changing frame of one of two sections of UICollectionView - ios

I am trying to configure my CollectionView to have one section be differently sized than the others. I have two sections. Lower part should show a number of cells simultaneously and the upper section should only show one cell at a time but be scrollable to reveal more cells one by one.
I tried to play with the .frame property of the CollectionView but obviously it is not the right approach as it changes the appearance of the whole view.
I also tried to retrieve the FlowLayout object and see if I can get it from there. Did not find a way.
Neither the section Insets are the answer so far ...
It is simple to use two uicollectionviews for upper and lower section, instead of using only one.

Resources