Skip to content

Commit

Permalink
updated Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CHENG committed Feb 20, 2014
1 parent 3fed844 commit b12c9f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demos/Demo/WYPopoverDemo/WYAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//
Expand Down
6 changes: 3 additions & 3 deletions demos/Demo/WYPopoverDemo/WYSettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ - (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSIntege

if (section == 0)
{
result = 2;
result = 12;
}
return result;
}
Expand Down Expand Up @@ -139,15 +139,15 @@ - (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"])
{
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
}
else if (indexPath.row == 1)
else if (indexPath.row % 2 == 1)
{
cell.textLabel.text = @"Small - 50%";
if ([pdfPhotoSize isEqualToString:@"half"])
Expand Down

0 comments on commit b12c9f4

Please sign in to comment.