Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add blur navigationBar add handle tap blurView #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
84021EEE1C8EBCB5002F868A /* UIViewController+CWPopup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84021EED1C8EBCB5002F868A /* UIViewController+CWPopup.swift */; };
84A458811C8EAF3400145693 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84A458801C8EAF3400145693 /* AppDelegate.swift */; };
84A458831C8EAF3400145693 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84A458821C8EAF3400145693 /* ViewController.swift */; };
84A458861C8EAF3400145693 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 84A458841C8EAF3400145693 /* Main.storyboard */; };
84A458881C8EAF3400145693 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 84A458871C8EAF3400145693 /* Assets.xcassets */; };
84A4588B1C8EAF3400145693 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 84A458891C8EAF3400145693 /* LaunchScreen.storyboard */; };
84A458971C8EAF6E00145693 /* mavericks.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 84A458941C8EAF6E00145693 /* mavericks.jpg */; };
84A458981C8EAF6E00145693 /* SamplePopupViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84A458951C8EAF6E00145693 /* SamplePopupViewController.swift */; };
84A458991C8EAF6E00145693 /* SamplePopupViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 84A458961C8EAF6E00145693 /* SamplePopupViewController.xib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
84021EED1C8EBCB5002F868A /* UIViewController+CWPopup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "UIViewController+CWPopup.swift"; path = "../../UIViewController+CWPopup.swift"; sourceTree = "<group>"; };
84A4587D1C8EAF3400145693 /* CWPopup-Swift-Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CWPopup-Swift-Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; };
84A458801C8EAF3400145693 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
84A458821C8EAF3400145693 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
84A458851C8EAF3400145693 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
84A458871C8EAF3400145693 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
84A4588A1C8EAF3400145693 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
84A4588C1C8EAF3400145693 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
84A458941C8EAF6E00145693 /* mavericks.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = mavericks.jpg; sourceTree = "<group>"; };
84A458951C8EAF6E00145693 /* SamplePopupViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SamplePopupViewController.swift; sourceTree = "<group>"; };
84A458961C8EAF6E00145693 /* SamplePopupViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SamplePopupViewController.xib; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
84A4587A1C8EAF3400145693 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
84A458741C8EAF3400145693 = {
isa = PBXGroup;
children = (
84A4587F1C8EAF3400145693 /* CWPopup-Swift-Demo */,
84A4587E1C8EAF3400145693 /* Products */,
);
sourceTree = "<group>";
};
84A4587E1C8EAF3400145693 /* Products */ = {
isa = PBXGroup;
children = (
84A4587D1C8EAF3400145693 /* CWPopup-Swift-Demo.app */,
);
name = Products;
sourceTree = "<group>";
};
84A4587F1C8EAF3400145693 /* CWPopup-Swift-Demo */ = {
isa = PBXGroup;
children = (
84A458941C8EAF6E00145693 /* mavericks.jpg */,
84A458951C8EAF6E00145693 /* SamplePopupViewController.swift */,
84A458961C8EAF6E00145693 /* SamplePopupViewController.xib */,
84A458801C8EAF3400145693 /* AppDelegate.swift */,
84021EED1C8EBCB5002F868A /* UIViewController+CWPopup.swift */,
84A458821C8EAF3400145693 /* ViewController.swift */,
84A458841C8EAF3400145693 /* Main.storyboard */,
84A458871C8EAF3400145693 /* Assets.xcassets */,
84A458891C8EAF3400145693 /* LaunchScreen.storyboard */,
84A4588C1C8EAF3400145693 /* Info.plist */,
);
path = "CWPopup-Swift-Demo";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
84A4587C1C8EAF3400145693 /* CWPopup-Swift-Demo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 84A4588F1C8EAF3400145693 /* Build configuration list for PBXNativeTarget "CWPopup-Swift-Demo" */;
buildPhases = (
84A458791C8EAF3400145693 /* Sources */,
84A4587A1C8EAF3400145693 /* Frameworks */,
84A4587B1C8EAF3400145693 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = "CWPopup-Swift-Demo";
productName = "CWPopup-Swift-Demo";
productReference = 84A4587D1C8EAF3400145693 /* CWPopup-Swift-Demo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
84A458751C8EAF3400145693 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = __ASIAINFO__;
TargetAttributes = {
84A4587C1C8EAF3400145693 = {
CreatedOnToolsVersion = 7.2;
};
};
};
buildConfigurationList = 84A458781C8EAF3400145693 /* Build configuration list for PBXProject "CWPopup-Swift-Demo" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 84A458741C8EAF3400145693;
productRefGroup = 84A4587E1C8EAF3400145693 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
84A4587C1C8EAF3400145693 /* CWPopup-Swift-Demo */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
84A4587B1C8EAF3400145693 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
84A4588B1C8EAF3400145693 /* LaunchScreen.storyboard in Resources */,
84A458971C8EAF6E00145693 /* mavericks.jpg in Resources */,
84A458881C8EAF3400145693 /* Assets.xcassets in Resources */,
84A458991C8EAF6E00145693 /* SamplePopupViewController.xib in Resources */,
84A458861C8EAF3400145693 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
84A458791C8EAF3400145693 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
84A458831C8EAF3400145693 /* ViewController.swift in Sources */,
84A458811C8EAF3400145693 /* AppDelegate.swift in Sources */,
84A458981C8EAF6E00145693 /* SamplePopupViewController.swift in Sources */,
84021EEE1C8EBCB5002F868A /* UIViewController+CWPopup.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
84A458841C8EAF3400145693 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
84A458851C8EAF3400145693 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
84A458891C8EAF3400145693 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
84A4588A1C8EAF3400145693 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
84A4588D1C8EAF3400145693 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
84A4588E1C8EAF3400145693 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
84A458901C8EAF3400145693 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "CWPopup-Swift-Demo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "AI.CWPopup-Swift-Demo";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
84A458911C8EAF3400145693 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = "CWPopup-Swift-Demo/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "AI.CWPopup-Swift-Demo";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
84A458781C8EAF3400145693 /* Build configuration list for PBXProject "CWPopup-Swift-Demo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
84A4588D1C8EAF3400145693 /* Debug */,
84A4588E1C8EAF3400145693 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
84A4588F1C8EAF3400145693 /* Build configuration list for PBXNativeTarget "CWPopup-Swift-Demo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
84A458901C8EAF3400145693 /* Debug */,
84A458911C8EAF3400145693 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 84A458751C8EAF3400145693 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// AppDelegate.swift
// CWPopup-Swift-Demo
//
// Created by admin on 3/8/16.
// Copyright © 2016 __ASIAINFO__. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}

func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading