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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-30-2009, 09:08 PM   #10 (permalink)
mr-sk
.38 special tucked
 
Join Date: Apr 2009
Location: Brooklyn, NY
Posts: 133
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
 

» Advertisements
» Online Users: 622
21 members and 601 guests
ADY, Ashleyk27, Dattee, denied, falcondor, Frost, HowEver, iDifferent, ilmman, IphoneSdk, JasonR, kampftrinker, mapiko, mer10, mongoose250, Monstertaco, mylogon, ric2z, smithdale87, walter_yaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,745
Threads: 89,200
Posts: 380,561
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Ashleyk27
Powered by vBadvanced CMPS v3.1.0

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