Moved animationStyle to dedicated methods so they can be documented

This commit is contained in:
Aparajita Fishman committed 2012-03-23 01:57:24 -07:00
1 parent 429b42d3e0
commit 7c807dd887
1 file changed
+22 -1
+22 -1
View File
@@ -67,7 +67,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
@outlet id _delegate @accessors(getter=delegate);
BOOL _animates @accessors(property=animates);
int _animationStyle @accessors(property=animationStyle);
int _animationStyle;
BOOL _shown @accessors(getter=shown);
int _appearance @accessors(property=appearance);
int _behavior @accessors(getter=behavior);
@@ -178,6 +178,27 @@ Set the behaviour of the CPPopover. It can be:
_needsCompute = YES;
}
/*!
Returns the current animation style.
*/
- (int)animationStyle
{
return _animationStyle;
}
/*!
Set the animation style of the CPPopover. It can be:
- \c CPPopoverAnimationStyleLion: (DEFAULT) the popover will zoom open and fade out when closing
- \c CPPopoverAnimationStyleIOS: the popover appears instantly when opening and fades out when closing
@param style the desired animation style
*/
- (void)setAnimationStyle:(int)style
{
_animationStyle = style;
}
- (void)setDelegate:(id)aDelegate
{