Skip to content

Commit

Permalink
Fix UI7PopoverController
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Sep 21, 2013
1 parent a27f21c commit c6fda6d
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ platform :ios, '5.0'

pod 'FoundationExtension', '~> 0.43.1'
pod 'SevenSwitch', '~> 1.3.0'
pod 'GIKPopoverBackgroundView'
pod 'GIKPopoverBackgroundView/Core'

Binary file added Resources/PopoverBackgroundArrowDown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowDown@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowDownRight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowDownRight@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSide@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSideBottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSideBottom@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSideTop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowSideTop@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowUp@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowUpRight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/PopoverBackgroundArrowUpRight@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion UI7Kit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ Pod::Spec.new do |s|
'UI7View' => [%w(UI7View.{h,m}) , [ ], %w( )],
'UI7ViewController' => [%w(UI7ViewController.{h,m}) , [%w(UI7Kit/UI7NavigationBar), %w(UI7Kit/UI7BarButtonItem) ], %w( )],
'UI7Window' => [%w(UI7Window.{h,m}) , [%w(UI7Kit/UI7View) ], %w( )],
'UI7PopoverController' => [%w(UI7PopoverController.{h,m}) , [%w(GIKPopoverBackgroundView) ], %w(QuartzCore)],
}
components.map do |component, values|
s.subspec component do |c|
Expand Down Expand Up @@ -88,6 +87,13 @@ Pod::Spec.new do |s|
end
end

s.subspec 'UI7PopoverController' do |ss|
ss.source_files = 'UI7Kit/UI7PopoverController.{h,m}'
ss.resources = 'Resources/Popover*'
ss.dependency 'GIKPopoverBackgroundView/Core'
ss.framework 'QuartzCore'
end

s.subspec 'Core' do |core|
core.source_files = 'UI7Kit/UI7{Kit,Utilities}*.{h,m}'
core.public_header_files = 'UI7Kit/UI7{Kit,Utilities}*.h'
Expand All @@ -107,5 +113,6 @@ Pod::Spec.new do |s|
all.dependency "UI7Kit/#{component}"
end
all.dependency 'UI7Kit/UI7Switch/SevenSwitch'
all.dependency 'UI7Kit/UI7PopoverController'
end
end
12 changes: 12 additions & 0 deletions UI7Kit/UI7PopoverController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//

#import <QuartzCore/QuartzCore.h>
#import <UI7Kit/UI7Utilities.h>

#import "UI7PopoverController.h"

@implementation UIPopoverController (Patch)
Expand Down Expand Up @@ -43,10 +45,20 @@ - (id)initWithContentViewController:(UIViewController *)viewController {
@end


@interface UI7PopoverBackgroundView (Private)

@property (strong, nonatomic) UIImageView *popoverBackground;

@end


@implementation UI7PopoverBackgroundView

- (void)layoutSubviews {
self.backgroundColor = [UIColor whiteColor];
self.layer.cornerRadius = 10.0f;
[super layoutSubviews];
//self.popoverBackground.image = [self.popoverBackground.image imageByFilledWithColor:[UIColor whiteColor]];
self.layer.shadowRadius = 500.0f; // immitate dimming view
}

Expand Down

0 comments on commit c6fda6d

Please sign in to comment.