Skip to content

Commit

Permalink
添加[super awakeFromNib];
Browse files Browse the repository at this point in the history
  • Loading branch information
kb100824 committed Jan 6, 2017
1 parent 71ab00e commit 084acd3
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 20 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4BC1D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemo.app"
BlueprintName = "EBTWaterWaveDemo"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4D51D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemoTests.xctest"
BlueprintName = "EBTWaterWaveDemoTests"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4E01D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemoUITests.xctest"
BlueprintName = "EBTWaterWaveDemoUITests"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4BC1D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemo.app"
BlueprintName = "EBTWaterWaveDemo"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4BC1D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemo.app"
BlueprintName = "EBTWaterWaveDemo"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7DBFB4BC1D40ADDE00747E19"
BuildableName = "EBTWaterWaveDemo.app"
BlueprintName = "EBTWaterWaveDemo"
ReferencedContainer = "container:EBTWaterWaveDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>EBTWaterWaveDemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>7DBFB4BC1D40ADDE00747E19</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>7DBFB4D51D40ADDE00747E19</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>7DBFB4E01D40ADDE00747E19</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
2 changes: 1 addition & 1 deletion EBTWaterWaveDemo/EBTWaterWaveView/EBTWaterImageWaveView.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
return self;
}
- (void)awakeFromNib{

[super awakeFromNib];
self.backgroundColor = [UIColor clearColor];
waveImageDirection = NO;
waveImageMaxYValue = kMAXYValue;
Expand Down
1 change: 1 addition & 0 deletions EBTWaterWaveDemo/EBTWaterWaveView/EBTWaterWaveView.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
}
- (void)awakeFromNib{

[super awakeFromNib];
self.backgroundColor = [UIColor clearColor];
waveFrame = self.frame;
wavedirection = NO;
Expand Down
34 changes: 17 additions & 17 deletions EBTWaterWaveView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Pod::Spec.new do |s|

s.name = "EBTWaterWaveView"
s.version = "0.0.1"
s.summary = "EBTWaterWaveView"
s.summary = "Two cut to map according to set the corresponding water level to achieve the water wave animation"

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
#s.description = <<-DESC
# DESC
s.description = "Two slices to map according to the corresponding set of water level values ​​to achieve the water wave support xib sb pure code"

s.homepage = "https://github.com/KBvsMJ/EBTWaterWaveDemo"
# s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"

Expand All @@ -37,11 +37,11 @@ Pod::Spec.new do |s|
# Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
#

#s.license = "MIT (example)"
s.license = "MIT"
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }


#――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
# ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Specify the authors of the library, with email addresses. Email addresses
# of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
Expand All @@ -51,20 +51,20 @@ Pod::Spec.new do |s|
# profile URL.
#

s.author = { "kbvsmj" => "2455063164@qq.com" }
#Or just: s.author = "KBvsMJ"
# s.authors = { "" => "" }
# s.social_media_url = "http://twitter.com/"
s.author = { "KBvsMJ" => "2455063164@qq.com" }
# Or just: s.author = "KBvsMJ"
# s.authors = { "KBvsMJ" => "2455063164@qq.com" }
# s.social_media_url = "http://twitter.com/KBvsMJ"

# ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target. You can optionally include the target after the platform.
#

# s.platform = :ios
s.platform = :ios, "8.0"

s.platform = :ios
s.platform = :ios, "8.0"
s.requires_arc = true
# When using multiple platforms
# s.ios.deployment_target = "5.0"
# s.osx.deployment_target = "10.7"
Expand All @@ -89,10 +89,10 @@ Pod::Spec.new do |s|
# Not including the public_header_files will make all headers public.
#

s.source_files = "EBTWaterWaveView", "EBTWaterWaveView/**/*.{h,m}"
# s.exclude_files = "Classes/Exclude"
s.source_files = "EBTWaterWaveView/*.{h,m}"
s.exclude_files = "Classes/Exclude"

s.public_header_files = "EBTWaterWaveView/**/*.h"
# s.public_header_files = "Classes/**/*.h"


# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand All @@ -116,7 +116,7 @@ Pod::Spec.new do |s|
#

# s.framework = "SomeFramework"
s.frameworks = 'UIKit', 'QuartzCore', 'Foundation'
# s.frameworks = "SomeFramework", "AnotherFramework"

# s.library = "iconv"
# s.libraries = "iconv", "xml2"
Expand All @@ -128,7 +128,7 @@ Pod::Spec.new do |s|
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.

s.requires_arc = true
# s.requires_arc = true

# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
Expand Down
2 changes: 1 addition & 1 deletion EBTWaterWaveView/EBTWaterImageWaveView.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
return self;
}
- (void)awakeFromNib{

[super awakeFromNib];
self.backgroundColor = [UIColor clearColor];
waveImageDirection = NO;
waveImageMaxYValue = kMAXYValue;
Expand Down
2 changes: 1 addition & 1 deletion EBTWaterWaveView/EBTWaterWaveView.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
return self;
}
- (void)awakeFromNib{

[super awakeFromNib];
self.backgroundColor = [UIColor clearColor];
waveFrame = self.frame;
wavedirection = NO;
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 084acd3

Please sign in to comment.