Questions tagged [setediting]

18 questions
2
votes
4 answers

How to set editing button on UITableView that is a subview on iOS

I have a UIViewController which has a UITableView as a child besides other elements. I want to add editing support on that tableView with this simple line: self.navigationItem.rightBarButtonItem = self.editButtonItem; It works if I set this on…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
2
votes
2 answers

Trigger setEditing: animated: without using an edit button

I have a UITableView with some custom cells in it. In these custom cells I defined a UILongPressGestureRecognizer that triggers the edit mode of this table. So when someone presses and holds a cell for like 1.5 sec, the table goes into edit…
Jules
  • 7,148
  • 6
  • 26
  • 50
2
votes
0 answers

Back button blinks when it's hidden

I'm trying to hide the back button when view controller enters the editing mode. Here's the code class DetailViewController: BaseViewController { override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) …
Ken Zhang
  • 1,454
  • 2
  • 13
  • 27
1
vote
1 answer

EXC_BAD_ACCESS (SIGSEGV) due to table setEditing

I've been stuck with an issue that causes my code to crash on iOS 8. It works fine on iOS 7 but for some odd reason crashes on iOS 8. I've debugged the code until I found out where it crashes... This is the function in which it crashes: -…
Brave Heart
  • 517
  • 3
  • 16
1
vote
2 answers

Table View setEditing for selected cell at indexPath

I want to enable editing for a single cell in a Table View at the selected index of a long press event, everything works except it enables editing for the entire table. How can I enable editing only on the cell that is…
Dayn Goodbrand
  • 611
  • 7
  • 16
1
vote
0 answers

UITableView editing using notifications?

I have a UITableView with an edit/done button. I would like to make some changes when it enters into edit mode. At the moment, I have overwritten setEditing:animated, but that seems fishy. Is there a notification sent when the tableView enters…
pbergson
  • 230
  • 3
  • 9
0
votes
1 answer

self.editing vs. self.tableView.editing and setEditing confusion

After presenting a modal view on my UITableView controller when editing is on, I found that the values of self.editing and self.tableView.editing are different when the controller is dismissed (self.editing was still on but self.tableView.editing…
Jeff
  • 2,659
  • 1
  • 22
  • 41
0
votes
1 answer

How to enable editing mode for all cells, not just visible ones

In my app I want to allow the user to press a button that enables them to change the order of the tableview cells. I am using [tableView setEditing:YES animated:YES]; However, when the user presses the button and then scrolls, the cells that were…
0
votes
1 answer

How to turn setEditing state into toggle mode for Edit/Done button

I am using a Edit/Done button to move an MKMapView upwards when Edit mode is selected, with the intention of display a message in an imageView at the bottom of the screen. My understanding is to change the function of this button I must use override…
Pigpocket
  • 449
  • 5
  • 24
0
votes
3 answers

editButtonItem doesn't change Edit/Done title

I use a default Bar Button Item editButtonItem here: @property (nonatomic, assign) BOOL isEditing; - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.rightBarButtonItem = self.editButtonItem; [self setupInterface]; } -…
0
votes
1 answer

What is the actual meaning of " ! " prefix in Swift?

I want to know about prefix !. I have created an app, and it has tableView. And I have used setEditing:animated property for editing a tableView, it allows multiple selection. When user start selecting? We need to cancel segue operations. Of course…
Beginner
  • 136
  • 1
  • 1
  • 10
0
votes
0 answers

Remove left space from UITableViewCell on setEdit:YES

I have a tableView with some questions that a user can reorder so I have set the property setEditing to YES [questionTableView setEditing:YES animated:YES]; also I donot want my user to delete any of the rows neither add so I have returned the…
Ahsan Ebrahim Khatri
  • 1,807
  • 1
  • 20
  • 27
0
votes
1 answer

Turn text grey on "Edit button" click

I have placeholder text in a textfield (called countTotalFieldUniversal) that I want to change color when I click the Edit button. Currently, my code is: - (void)setEditing:(BOOL)flag animated:(BOOL)animated { NSLog(@"setEditing called"); [super…
AllieCat
  • 3,890
  • 10
  • 31
  • 45
0
votes
2 answers

How to find cell indexPath that was selected when calling [tableView setEditing:NO]?

On a tableView that allows selection in edit mode, how do i find which was the selected cell when i call [tableView setEditing:NO animated:YES] and exit edit mode ? There is no call to didDeselectRowAtIndexPath:, are there any other methods i…
ceekay
  • 1,167
  • 1
  • 10
  • 14
0
votes
2 answers

UITableView in editing mode doesn't show insertion unless reloadData called, which kills the animation

I have a UITableView with three sections, the second section has the table that shows insertion and deletion indicators in editing mode. I'm adding a cell for the insertion row in cellForRowAtIndexPath: when editing is YES. Also, when the table goes…
ToddB
  • 2,490
  • 3
  • 23
  • 40
1
2