I can't seem to see what exactly a section is. I know what a row is in UITableViewController, but what is a section. Is it a separate piece of information? I'm a beginner and couldn't find a clear answer anywhere else on the web.
A section is a group of rows. For example, in the settings app, different rows are grouped into sections.
Sections can have titles and allow for information to be broken apart.
Related
i want to make a view for event details, using swift, something like this one:
what do you suggest me to use? tableview? collectionview? every events has a different numbers of rows and every row can have a different height, example based on text.
Is there some example on the web?
Thanks!
I suggest a tableView and everything row should be in section.
Sections:
image section
action section
date section
and so for forward. For the sections you can use and enum so you don't use directly ints. Then every section has one row usually. The final design should result pretty clean.
Question related to UITableView collapse and Expand mode with dynamic sections. We got the requirement of showing the number of cells which has the collapse and expand option and once user expand the cell which will be having the list of sections and cells.
For more info I am attaching the screenshot, and please suggest me the best approach.
There are plenty of libraries available for this and many more other requirements,check out this cocoacontrols
Apple has made a demo, the key is to manipulate your section header, detail check this
https://developer.apple.com/library/ios/samplecode/TableViewUpdates/Introduction/Intro.html
My problem is that I couldn't find the way to appear specific section of UICollectionview.
For example, 5 sections exsisted and I want to make 3rd section appearing at the beginning.
But 1st section only appeared and could not find the method to choose the section I want to show.
If anyone knows the way to solve this problem, please tell me how to solve it.
If you don't want to modify your datamodel to order sections, and show '3rd section' as '1st section', then you can use
scrollToItemAtIndexPath:atScrollPosition:animated: on UICollectionView.
You can pass [NSIndexPath indexPathForItem:0 inSection:2] assuming you have items in that section.
my english very poor.. sorry TT
only one row select at time on UITableView multiple sections. (UITableViewCellAccessoryCheckmark)
What should I do?
Try to Use thid Sample project CRMultiRowSelect for iOS may be helpful for you.
I have table view which contain 7 sections and each section has different number of rows. The problem is when I select a row in section and check mark. Others sections rows are also checked mark and when I scroll the table. then unwanted check marks are appeared. It show very goofy behavior.
If you have any tutorial or sample code, please share it with me.