Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

ipad popover buttons bug

for an ipad popover the left button cannot be set because it points to the right button

TiUIiPadPopoverProxy.m line 112

-(void)setRightNavButton:(id)item withObject:(id)properties
{
    ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
    [self replaceValue:item forKey:@"rightNavButton" notification:NO];
    [self refreshTitleBarWithObject:properties];
}

-(void)setLeftNavButton:(id)item withObject:(id)properties
{
    ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
    [self replaceValue:item forKey:@"rightNavButton" notification:NO];
    [self refreshTitleBarWithObject:properties];
}
— asked July 16th 2010 by Dan Tamas
  • bug
  • ipad
  • popover
0 Comments

2 Answers

  • OK, if you need this working, it's simple to fix.
    Go into your project folder to

    build/iphone/Classes/

    and edit the file TiUIiPadPopoverProxy.m

    change the code

    -(void)setLeftNavButton:(id)item withObject:(id)properties
    {
        ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
        [self replaceValue:item forKey:@"rightNavButton" notification:NO];
        [self refreshTitleBarWithObject:properties];
    }
    

    to

    -(void)setLeftNavButton:(id)item withObject:(id)properties
    {
        ENSURE_SINGLE_ARG_OR_NIL(item,TiViewProxy);
        [self replaceValue:item forKey:@"leftNavButton" notification:NO];
        [self refreshTitleBarWithObject:properties];
    }
    

    delete the build/iphone/build/ folder to force Titanium to recompile and you're set :)

    — answered July 19th 2010 by Dan Tamas
    permalink
    0 Comments
  • OK, this is fixed in the upcoming 1.4 :)

    — answered July 21st 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.