Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-06-2010, 11:59 AM   #1 (permalink)
Registered Member
 
Whitehk's Avatar
 
Join Date: Feb 2010
Posts: 119
Whitehk is on a distinguished road
Default Clicking the editButtonItem done button doesn't end the editing

I have a UITableView. The left nav item is a edit button item. Whenever I click the edit button and try to click the done button to stop the editing, it won't do anything. What could be wrong? It was working fine not too long ago. What might I have deleted by accident? Here's my set editing method:

Code:
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
		[super setEditing:editing animated:animated];
		self.navigationItem.rightBarButtonItem.enabled = !editing;
}
Whitehk is offline   Reply With Quote
Old 11-06-2010, 12:55 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 90
LittleX1 is on a distinguished road
Default

Is your Done-Button still connected to the correct IBAction in Interface Builder?
LittleX1 is offline   Reply With Quote
Old 11-06-2010, 12:58 PM   #3 (permalink)
Registered Member
 
Whitehk's Avatar
 
Join Date: Feb 2010
Posts: 119
Whitehk is on a distinguished road
Default

Quote:
Originally Posted by LittleX1 View Post
Is your Done-Button still connected to the correct IBAction in Interface Builder?
I created the button programmatically. I created it by putting
self.navigationItem.leftBarButtonItem = self.editButtonItem; in viewDidLoad.
Whitehk is offline   Reply With Quote
Old 11-06-2010, 05:26 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

You have to tell the table view to toggle its editing status, too.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
editbuttonitem, navigation bar, navigation buttons, setediting, uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 349
10 members and 339 guests
7twenty7, chiataytuday, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, mistergreen2011, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,660
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, laureix68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0