How mimic delete specific row in a UITableView? - iphone

I have a list of things in a table view.
When a user tap a row, I increase score. I wish provide a way to clear the score for that row.
My first try is put the table in edit mode, show the delete button to that row and proceed. However, all the other rows get blocked and can't tap again the score or tap in the disclosure button.
So, obviously this is not the way. But then I don't see what to do. Any suggestion?

You could add a button to clear the row’s score as a subview of your table cell. I suppose you’d have to put it on the left side, though, since the disclosure button is on the right.

Related

Long press Wobble Effect iPhone

I have a tableview, 3 items in a cell, basically I am showing my items in grid view format with 3 columns and I am using tableview for this. This is fine. Now I want to achieve something like when I press any item on tableview/cell for long then all items will wobble and there will be small delete icon on their top left, when user press that icon then that item will be deleted, the way it happens in iPhone home screen.
Now first I want to know is how much feasible is this idea ? Like my only 2 rows will be visible at a time, and tableview reuses cell so if I scroll down and I delete any of the item then it won't create much hassle to manage delete of correct item right? And I want some direction of achieving that long press and wobble effect animation of items. What can I try?
For the wobbling effect animation code, check out this post.
And for the tableview management,you have to save the indexpath on the layer property of the view.
[imageView.layer addObject:indexpath forKey:#"indexPath"];
Now you are able to grab the cell and delete it.

How to use first responder to keep only one cell selected at the maximum in a view with multiple table views?

I have a scrollview which has several table views as sub views...
say that I have selected a cell in one of the sub views. Now when I select a cell from another view, the cell I selected previously should not be highlighted.
How do I do this? I know I can do this using the first responder, but I am not sure how to do it.
Would anyone be able to help me out in this?
Thanks
From the apple interface guidlines:
Always provide feedback when users select a list item. Users expect a table row to highlight briefly when they tap a selectable item in it. After tapping, users expect an immediate action to occur: Either a new view appears or the row displays a checkmark to indicate that the item has been selected or enabled.
In rare cases, a row might remain highlighted when secondary details or controls related to the row item are displayed in the same screen. However, this is not encouraged because it is difficult to display simultaneously a list of choices, a selected item, and related details or controls without creating an uncomfortably crowded layout.
I don't think apple will approve an app that leaves a row highlighted (I had an app reject for that very reason). You should perform an action and then immediately unhighlight it. In some rare cases you can leave it highlighted while showing a related view.
However, if you store the current cell you have selected, you can call -deselectRowAtIndexPath:animated: on the tableview to deselect a row.

Show selected row always while scrolling UITableView?

Let's say we have a UITableView with some 100 rows, we select a row and after that we scroll the UITableView. The selected row is also scrolled top or bottom direction but I want the selected row to be always visible to the user while scrolling the table. Is it possible ?? please help me out which sample code..(it is same like twitter scrolling)
If you want this, you'll have to write a completely custom tableview from scratch (which I believe was done for Twitter.app). There's no way to do that with the built-in tableview.

PickerView select first row

I have a UIPickerView that pops up from the bottom of the IPhone's screen when a UITextField begins editing. When a row is selected my UIPickerView is dismissed.
But the problem is that don't manage to select the first row which is shown under the selection indicator.
Right now I can select all except the first row. So the UIPickerView never dismisses and I can't choose that value.
The only workaround I found is to scroll a bit the picker in order to still select the first row, so when I "release the touch" the first row is selected. But it's not a good workaround I need the same behavior I have with the other rows.
Thanks for your help as usual.
Wallou
Bye
The way many apps do the trick is to add a button upon the picker to validate the selected item.

How to invert arrow image placed before the first cell when tableview cells are swiped beyond first cell?

In my application, I need to add this functionality that there should be an arrow image upside down placed before first cell and some text like "Pull down to refresh" and when user pulls the table beyond this then this arrow gets inverted and text changes to "Release to refresh" and when the user releases his finger, the data is refreshed and rows get added to that point So now this initial arrow and text moves upwards before the first cell again.
Can anybody tell me wheather there's any event that does this? Or else which event I need to capture in order to add this functionality?
Thanks in advance.
Everything (and I mean everything) you want is here
Pull to reload tableview