diff --git a/Example/PTPopupWebView.xcodeproj/xcshareddata/xcschemes/PTPopupWebView-Example.xcscheme b/Example/PTPopupWebView.xcodeproj/xcshareddata/xcschemes/PTPopupWebView-Example.xcscheme index 724f39e..6d0826d 100644 --- a/Example/PTPopupWebView.xcodeproj/xcshareddata/xcschemes/PTPopupWebView-Example.xcscheme +++ b/Example/PTPopupWebView.xcodeproj/xcshareddata/xcschemes/PTPopupWebView-Example.xcscheme @@ -1,6 +1,6 @@ + buildForArchiving = "YES" + buildForAnalyzing = "YES"> + BuildableIdentifier = "primary" + BlueprintIdentifier = "4206207BDA3390B2B89B7ABDA1E0A5AF" + BuildableName = "PTPopupWebView.framework" + BlueprintName = "PTPopupWebView" + ReferencedContainer = "container:Pods.xcodeproj"> + shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + + debugDocumentVersioning = "YES"> diff --git a/Example/Pods/Target Support Files/PTPopupWebView/Info.plist b/Example/Pods/Target Support Files/PTPopupWebView/Info.plist index ff4414e..c6c217e 100644 --- a/Example/Pods/Target Support Files/PTPopupWebView/Info.plist +++ b/Example/Pods/Target Support Files/PTPopupWebView/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.3.0 + 0.3.1 CFBundleSignature ???? CFBundleVersion diff --git a/Example/Pods/Target Support Files/Pods-PTPopupWebView_Example/Info.plist b/Example/Pods/Target Support Files/Pods-PTPopupWebView_Example/Info.plist index 6974542..11db4b7 100644 --- a/Example/Pods/Target Support Files/Pods-PTPopupWebView_Example/Info.plist +++ b/Example/Pods/Target Support Files/Pods-PTPopupWebView_Example/Info.plist @@ -2,25 +2,25 @@ - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + diff --git a/Example/Pods/Target Support Files/Pods-PTPopupWebView_Tests/Info.plist b/Example/Pods/Target Support Files/Pods-PTPopupWebView_Tests/Info.plist index 6974542..11db4b7 100644 --- a/Example/Pods/Target Support Files/Pods-PTPopupWebView_Tests/Info.plist +++ b/Example/Pods/Target Support Files/Pods-PTPopupWebView_Tests/Info.plist @@ -2,25 +2,25 @@ - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - org.cocoapods.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0.0 - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + ${CURRENT_PROJECT_VERSION} + NSPrincipalClass + diff --git a/Pod/Classes/PTPopupWebView.swift b/Pod/Classes/PTPopupWebView.swift index c67f835..d7cec06 100644 --- a/Pod/Classes/PTPopupWebView.swift +++ b/Pod/Classes/PTPopupWebView.swift @@ -262,7 +262,7 @@ public class PTPopupWebView : UIView { button.adjustsImageWhenHighlighted = false button.translatesAutoresizingMaskIntoConstraints = false - button.addTarget(self, action: "buttonTapped:", forControlEvents: .TouchUpInside) + button.addTarget(self, action: #selector(PTPopupWebView.buttonTapped(_:)), forControlEvents: .TouchUpInside) buttonContainer.addSubview(button) buttons.append(button) } @@ -330,7 +330,7 @@ public class PTPopupWebView : UIView { closeButton.setImage(image, forState: .Normal) closeButton.contentEdgeInsets = UIEdgeInsetsMake(8, 8, 8, 8) - closeButton.addTarget(self, action: "close", forControlEvents: .TouchUpInside) + closeButton.addTarget(self, action: #selector(PTPopupWebView.close), forControlEvents: .TouchUpInside) } // Web view @@ -495,8 +495,7 @@ public class PTPopupWebView : UIView { } case .LinkClose(let url): if let url = url { - let request = NSURLRequest(URL: url) - webView.loadRequest(request) + UIApplication.sharedApplication().openURL(url) } close() case .Back: