update the CPScrollView2 manual test to use the new API

This commit is contained in:
Antoine Mercadal
2011-10-25 17:14:32 +02:00
parent b37893d9bb
commit e9b87d7acc
+3 -3
View File
@@ -92,9 +92,9 @@
*/
- (IBAction)changeSystemWideScrollerStyle:(id)aSender
{
if ([CPScrollView currentDefaultScrollerStyle] == CPScrollerStyleOverlay)
[CPScrollView setCurrentDefaultScrollerStyle:CPScrollerStyleLegacy];
if ([CPScrollView globalScrollerStyle] == CPScrollerStyleOverlay)
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleLegacy];
else
[CPScrollView setCurrentDefaultScrollerStyle:CPScrollerStyleOverlay];
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleOverlay];
}
@end