Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Nov 16, 2009, 07:01 PM   #1
macrumors newbie
Join Date: Nov 2009
Custom UITableViewCell edit mode

I'm trying to develop a custom edit mode for a UITableViewCell which basically just enables/disables user interactivity with the UITableViewCell objects. I'm running into a problem where after clicking the Edit button, the code for enabling interactivity fires, but the cell does not become interactive until after the Done button is pressed. I discovered this by commenting out the code for disabling interactivity. Without commenting the code out, the cell never becomes interactive because the disabling code runs. Here is the implementation of the custom UITableViewCell:

#import "FlingdarTableViewCell.h"

@implementation FlingdarTableViewCell

- (void)setEditing:(BOOL)editing animated:(BOOL)animated
	//[super setEditing:editing animated:animated];
	[self setNeedsLayout];

- (void)layoutSubviews
	[super layoutSubviews];
	if (((UITableView *)self.superview).isEditing)
		[self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
		[(FlingdarTableViewCell *)self setUserInteractionEnabled:YES];
		[self setAccessoryType:UITableViewCellAccessoryNone];
		[(FlingdarTableViewCell *)self setUserInteractionEnabled:NO];


- (void)dealloc
    [super dealloc];

Any help would be greatly appreciated. If you need to see any of the other code, I can provide it.
DrewCH is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
custom UITableViewCell subview frame erdinc27 iPhone/iPad Programming 5 May 21, 2014 01:21 AM
Resolved: custom font for Custom UITableViewCell erdinc27 iPhone/iPad Programming 5 Apr 18, 2014 12:50 PM
Springtomize 2 Custom Time Mode - Custom String GUILTIE Jailbreaks and iOS Hacks 10 Mar 7, 2013 03:18 PM
Apps go into edit mode when I tap on one 3bs Jailbreaks and iOS Hacks 3 Jul 11, 2012 07:50 AM
Custom Delete UITableViewCell mdhansen5 iPhone/iPad Programming 1 Jun 1, 2012 10:41 AM

Forum Jump

All times are GMT -5. The time now is 03:44 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC