I am using Parse.com as the backend for developing an iOS application (using Swift).
I currently have a PFQueryTableViewController displaying a list of rows from my Parse table "Sports".
I would like to, however, have the Parse-returned query-based cells in a section, and then have a section above this section with 3 more 'static'-type of cells.
The question is very similar to this one: Mix of static and dynamic table view cells iOS
BUT I am just unsure of how to do this with a PFQueryTableViewController...
Any help?
So for anyone trying to do this, I found a BRILLIANT solution! Best part about it? ZERO CODE required!
I stumbled upon this other question in StackOverflow (UITableView Mix of Static and Dynamic Cells?) and found that the bottom answer of using a Container View at the top of the UITableViewController works the same for PFQueryTableViewController!
This web page gives further detail on how to do this step-by-step:
http://www.mikebobiney.com/2014/09/28/static-table-view-containers/
Related
I need to display a simple list where each cell has a title and subtitle and an accessory view. Height of a cell may be variable depending on subtitle length. This was easy to display using UITableView. But I saw a more modern way is to display such a list is UICollectionView with list configuration. There are a number of videos on list configuration & diffable data source and number of tutorials as well on the same but what I am trying to understand is if Apple is telling developers to move to UICollectionView from UITableView (which some experts surmise is going to be deprecated given the new APIs). So my question is whether one should abandon UITableView to display such a list mentioned above, and if UICollectionView is really a replacement for UITableView?
Apple started killing UITableViews years ago, likely 5 or so. They're still here and still going strong. UITableViews will still work and there's absolutely no reason for you to drop them and replace them with UICollectionViews.
Recently i am facing an issue in saving data of Uitableview inside Uitableview cell in ios swift
Senario
Questions asked in above pictures is one table view and this table view cell contain 1 label for question text and uitableview that show possible answers provided by admin and user is allowed to select one.i am enable to display data perfectly but facing an issue when trying to save answers of every question in one array.it always store the value of last questions answers.
Why are you using two different UITableView? Any specific reason? You can get data from different resources but there is no need to use two table views.
You should use a section header view to show the questions & sections rows as options(answer option).
You can dynamically add or delete the options(rows) from any section(question). Also, there will not be the above scenario if you implement it using this easy approach.
Let me know in case of any query.
Currently I am trying to recreate something like the Instagram/Pinterest iOS profile page where you can swipe between sections that have different data and layout while having a header that doesn't scroll horizontally but vertically with each section. A very similar design to the current Instagram and Pinterest profile layouts.
I have made a layout that is similar which uses a custom segmented control in the header that uses a delegate to change between sections but this won't work because I have now integrated IGListKit which uses section controllers.
I have scoured the internet looking for examples on how to achieve this but haven't found anything useful. If anyone could provide resources I could look into or examples on how to achieve the desired layout, that would be helpful!
Check this library out:
https://github.com/subinspathilettu/SJSegmentedViewController
This will give you a ViewController with a header view controller with multiple segments; I have posted a screenshot below:
I was wondering if anyone knew what the best way of creating a similar tableview header effect to the one in Spotify was. I have looked at libraries such as CSSStickyHeaderFlowLayout, but they are written in Obj-C and are for CollectionViews. What's basically got to happen is that as the user scrolls to find more tableview cells at the bottom, the header stays in the same place and the top cells start covering it. This is seen in the example section of the git page of the library above.
Thanks in advance for any help!
Try using the solution found here
The original example uses Obj-C but the asker's response uses Swift. They also make use of TableViews rather than CollectionViews
I was wondering how the new iOS Facebook app has implemented their cells:
Different squares with some content inside depending on which type of information. Which components, views and so on - do you think is used?
And the tableview, is it cells or grouped sections?
Which keywords should I be looking for - to make a similar timeline-wall?
Thanks
Okay doesnt matter. Found out I could create a viewcontroller containing tableview with grouped sections and all smaller uiviews I wanted.