UITableView - expanding cells [duplicate] - iphone

This question already has answers here:
Expand/collapse section in UITableView in iOS
(17 answers)
Closed 7 years ago.
I managed to expand my cell (after many tries) as you can see in my pic.
but what I really want is something like this:
as you can see when the user click on description the cell expand showing the content:
Can please somebody tell me where I can find all the info to do that. (I struggling to find them). thank you very much!!!!!!

You can try apple's source code in your application- http://developer.apple.com/library/ios/#samplecode/TableViewUpdates/Introduction/Intro.html
or you can fallow this blog -
http://www.cocoanetics.com/2011/03/expandingcollapsing-tableview-sections/
and you need to add custom UITableViewCell design as per your need.

Change the height of the cell in tableView:heightForCellAtIndexPath:, change the cell layout in tableView:cellForRowAtIndexPath: and call [[self tableView] reloadData];.

Related

UITableView with Multiple Columns [duplicate]

This question already has answers here:
How to display multiple columns in a UITableView?
(6 answers)
Closed 9 years ago.
Is it possible to create multiple columns in UITableView, as my requirement demand me to do this, If it is possible how i can i resolve this issue.
Thanks in advance.
You may use UICollectionView for that. Or simply build each UITableViewCell with needed labels and elements in cycle with columns count
First thing you need to do is take a look at UITableViewCell Documetation and Read the Content given there. If you read it properly, you'll get the Answer in the form of these Steps :
Create Custom UITableViewCell with UILabel equals to Number of Columns.
Use this UITableViewCell in your UITableView.
Fill each Row of UITableView with your Database Table Rows.
Tutorials to Integrate custom UITableViewCell :
Creating custom UITableViewCell from XIBs – step by step tutorial
Crafting Custom UITableView Cells
GoodLuck !!!
If you will use CustomCell there will be scrolling issue. So the best way to do this is UICollectionView for ios6. I did it with CustomCell also so if you are working for ios5 I will guide you.

reload the data of specific uitableview cell [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Is it possible to refresh a single UITableViewCell in a UITableView?
Sorry if the question is stupid but instead of using [mytableview reloaddata],how can we reload the data of only specific UITableViewCell.
You want UITableView's reloadRowsAtIndexPaths: withRowAnimation: method. I've linked the documentation for you.
All you need to provide is the index paths to the cell(s) you want to redraw.

How to delete a custom tableview cell? [duplicate]

This question already has an answer here:
Smooth reload of uitableview data when rows are deleted
(1 answer)
Closed 8 years ago.
i am using custom cell in uitableview cell.I am giving button on the right of the navigation bar .if user click on the button the delete cell option has to come like default cell delete option...can any one share code ...thanks in advance....
To delete a UITableViewCell, you should remove the data from the Array that populated the tableview. You can remove it using any logic, and the value of the row returned from the touch.
After that, a simple [tableView reloadData]; will do the trick.
Whenever you click the button corresponding the custom cell you should move the data of the next concurrent cells to their previous cell and then call [reloadData]
check this may help

UITableView Header (not section header) problem [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Adding iOS UITableView HeaderView (not section header)…
I want to make a tableview header like in the contacts app:
Exactly like there, am image beside a label above the table.
Any way doing that?
Thanks!
Did you try a custom UIView with 2 subviews, a UIImageView and a UILabel, for a header?

Checkable UIPickerView [duplicate]

This question already has answers here:
How can I get a check mark beside UIPickerView labels?
(2 answers)
Closed 9 years ago.
i can't find a property to set my UIPickerView checkable... in other programs, I can select a item and the pickerView show a checkmark :-(
Here I solve this problem by creating controller.With this we can able to design view with our own way.Here,I use a UITableView and some custom Delegates methods to create a picker view.
Hope,it solve your problem
Check this link also:
Click here!
You will have to make a custom picker view. There is a method that is viewForPickerView:atComponent:row: or something like that. You will need to return your own view and do your own logic to draw a checkmark.
See my answer here for an elaboration of reproducing a checkmark-enabled UIPickerView, like the one Mobile Safari uses for dropdown menus.