From b12c9f4499faf5858f836f10319fa9cdeb83c2d4 Mon Sep 17 00:00:00 2001 From: Nicolas CHENG Date: Thu, 20 Feb 2014 22:25:10 +0100 Subject: [PATCH] updated Demo --- demos/Demo/WYPopoverDemo/WYAppDelegate.m | 4 ++-- demos/Demo/WYPopoverDemo/WYSettingsViewController.m | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/Demo/WYPopoverDemo/WYAppDelegate.m b/demos/Demo/WYPopoverDemo/WYAppDelegate.m index 31931e15..4074816c 100644 --- a/demos/Demo/WYPopoverDemo/WYAppDelegate.m +++ b/demos/Demo/WYPopoverDemo/WYAppDelegate.m @@ -65,8 +65,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [WYPopoverController setDefaultTheme:[WYPopoverTheme themeForIOS6]]; WYPopoverBackgroundView *popoverAppearance = [WYPopoverBackgroundView appearance]; - [popoverAppearance setArrowHeight:60]; - [popoverAppearance setArrowBase:20]; + [popoverAppearance setArrowHeight:23]; + [popoverAppearance setArrowBase:35]; //Appearance 2 (orange popover) // diff --git a/demos/Demo/WYPopoverDemo/WYSettingsViewController.m b/demos/Demo/WYPopoverDemo/WYSettingsViewController.m index a5406c83..15eba2f6 100644 --- a/demos/Demo/WYPopoverDemo/WYSettingsViewController.m +++ b/demos/Demo/WYPopoverDemo/WYSettingsViewController.m @@ -77,7 +77,7 @@ - (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSIntege if (section == 0) { - result = 2; + result = 12; } return result; } @@ -139,7 +139,7 @@ - (void)updateCell:(UITableViewCell*)cell atIndexPath:(NSIndexPath*)indexPath if (indexPath.section == 0) { - if (indexPath.row == 0) + if (indexPath.row % 2 == 0) { cell.textLabel.text = @"Medium - 100%"; if ([pdfPhotoSize isEqualToString:@"large"]) @@ -147,7 +147,7 @@ - (void)updateCell:(UITableViewCell*)cell atIndexPath:(NSIndexPath*)indexPath cell.accessoryType = UITableViewCellAccessoryCheckmark; } } - else if (indexPath.row == 1) + else if (indexPath.row % 2 == 1) { cell.textLabel.text = @"Small - 50%"; if ([pdfPhotoSize isEqualToString:@"half"])