Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-30-2009, 08:08 PM   #10 (permalink)
mr-sk
.38 special tucked
iPhone Dev SDK Supporter
 
Join Date: Apr 2009
Location: Brooklyn, NY
Posts: 132
Default

Hey Artem & Avocado -

Probably the fact I'm still learning that I'm totally making this a bigger problem than it should be here:

Here's the method that I'm trying to change the UIBarButton in:

Code:
- (IBAction)addToFav:(id)sender
{    
    NSLog(@"Add Button Pressed");    
    addButton.enabled = FALSE;

     ....HERE....

    [self insertIntoDB:[NSString stringWithFormat:@"..."]];
}
Currently, I'm just setting the add button to disabled. But what I want to do is make it (create in its place, etc) an 'Undo' button. If they select the 'Undo' button, it should then go back to an 'Add' button.

Also, here's a picture of the controller I'm working with:

http://mr-sk.com/iphone/controller.png

Thanks - much appreciated.
- sk

**EDIT** Artem, I tried what you mentioned, but could not get it to work. I think its an issue with me being confused on exactly the syntax/names of the controllers VS what you've provided...any assistance is greatly appreciated.
mr-sk is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,267
Threads: 39,062
Posts: 171,292
Top Poster: smasher (2,575)
Welcome to our newest member, nvrendingsoft
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:52 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.