I am using a grouped table view to display items on a view controller.
I want anchor the section's title just like it happens with the plani styled table.
How could I do that?
Ah, I know what you mean, my answer is no, you don't think you will be able to do that in a simple way. You might be able to do that with some workarounds using custom UITableViewCells and custom UIView's as the section's titles. I guess that way you could achieve that.
Related
I'm basically trying to achieve this, Is this even possible ?
Thank you all!
To answer your question: You cannot display two UITableViews side by side. Instead you should use UICollectionView with the UICollectionViewFlowLayout.
If I understand the use case correctly you can only select one option per row, right? If so, I'd use a plain UITableView and add a UISegmentedControl to each row. With that you get the one-option-per-row behavior out of the box without having to write your own.
In iOS, the built-in contacts app looks similar to what's displayed on this example page. What controls are being used to create the initial view? Is it a table view? If so, how is the image on the left offset from the two rows?
What's happening behind the scenes to switch this view into edit mode? Are labels being replaced with textboxes or are the textboxes simply being set to editable?
There are 2 ways to do things like this that I know
#1. That is UI TableView, but TableView with a custom TableView Header.
Also it is UITableViewStyleGrouped
Just Init and setup the view include a UIImageView On the left side and three UITextField on the right side.
like this
|----------| |---TextField---|
|---Image--| |---TextField---|
|----------| |---TextField---|
and set this view with:
self.tableview.headerView = yourViewWithImageAndTextField;
2. Just try to use Apple's own ABPersonViewController
Apple's sample
Documentation
Good luck to you
This looks like an pre iOS7 UITableView in UITableViewStyleGrouped style, and a probably a custom cell to handle the image.
I am using a UITableViewController with a plain style. I like how the cells expand to the edges of thew view, but I hate how the section titles stick to the top.
Is there a way to have section titles behave similar to how a grouped listing works?
What about using grouped style but removing the left and right margins. Possible?
I think this question might answer you. One awkward way of achieving this is not using the UITableView sections and draw cells instead with your a custom design.
You could always create a custom cell with the appearance of a section header. That's what I've done in the past to for these kinds of scenarios, that way it won't stick to the top of the view. This of course requires additional logic such as disabling section headers and and using your new custom section header as a single celled section in your table view, if you catch my drift. It's actually not that hard and gives you good flexibility.
I have a tableView and after a flip animation I want modify the tableView style programmatically from grouped to plain, is it possible, if yes how?
Thanks
You cant just change the style of a UITableView after its been created, therefore you should probably release your old table view and recreate a new one with the style that you want...
I want to put a uitabbar into a section in uitableview, I have hard time looking a way for it, since I just started doing XCODE in less than a month. Anyone there know the solution for it? Any help is appreciated, and if possible, could you share a link for the tutorial or examples as well. Thanx in advance.
You can't do it in this way. They both are different things but you can have UITableView inside the uitabbar view. But vica-versa is not allowed ...this is not feasible and also not proper as per apple's guideline. So, please make sure not to use in this way...rather go for some other alternative :
like put Custom UIToolBar in header of tableView , having look & feels like Tabbar.
You cannot put a tab bar into a tableview.
I you want to use a tab bar, use it as a sub view of a UIView.
The UITabBar is supposed to contain other views. So no, you cannot add it to your table view. To get the look and feel of the Groupon app, there are two things you could do:
1. Create a custom tableviecell as advised above.
2. Since the toolbar (which looks like a tabbar) is outside the actual table, you can have it as a separate view and reduce the size of the table to accommodate it. Or add the toolbar to the footer view of the table.