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];
}
2 Answers
-
OK, if you need this working, it's simple to fix.
Go into your project folder tobuild/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 :)
-
OK, this is fixed in the upcoming 1.4 :)