Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
bestswifter committed Feb 2, 2016
1 parent f2d178f commit fc14fa2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 29 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
不过都是些源码,下载速度非常快。我更建议您使用`git clone`,这样以后更新时只要`git pull`就可以了,避免了重复下载的麻烦。

# 快速索引
[简书]()[bestswifter]()

这些demo都是用来配合我的博客,你可以选择在简书或我的个人博客阅读文章,水平有限欢迎指正。

* 你应该知道的Swift小tips:[简书](http://www.jianshu.com/p/a11c6060176c)
Expand All @@ -16,3 +16,4 @@
* UIKit性能调优实战讲解:[简书](http://www.jianshu.com/p/619cf14640f3)[bestswifter](http://bestswifter.com/uikitxing-neng-diao-you-shi-zhan-jiang-jie/)
* Swift递归枚举与红黑树:[简书](http://www.jianshu.com/p/ad09e1f404b0)
* 史上最简单的UIScrollView+Autolayout出坑指南:[简书](http://www.jianshu.com/p/f7f1ba67c3ca)[bestswifter](http://bestswifter.com/uiscrollviewwithautolayout/)
* 几个加速Swift开发的小tip:[简书]()
3 changes: 3 additions & 0 deletions SwiftTips/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 几个加速Swift开发的小tip

这份代码是[《几个加速Swift开发的小tip》]()一文的demo,主要介绍了Swift中很不错,但也很容易忽视的小tip,掌握这些小技巧能够一定程度上加快开发速度,写出更好的代码
5 changes: 1 addition & 4 deletions SwiftTips/SwiftTips.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/* Begin PBXBuildFile section */
9BE365691C60CFCE00C61A55 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365681C60CFCE00C61A55 /* main.swift */; };
9BE365741C60D07B00C61A55 /* Closure.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE3656F1C60D07B00C61A55 /* Closure.swift */; };
9BE365751C60D07B00C61A55 /* PrivateSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365701C60D07B00C61A55 /* PrivateSet.swift */; };
9BE365761C60D07B00C61A55 /* Semicolon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365711C60D07B00C61A55 /* Semicolon.swift */; };
9BE365771C60D07B00C61A55 /* Breakpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BE365721C60D07B00C61A55 /* Breakpoint.swift */; };
Expand All @@ -30,7 +29,6 @@
/* Begin PBXFileReference section */
9BE365651C60CFCE00C61A55 /* SwiftTips */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SwiftTips; sourceTree = BUILT_PRODUCTS_DIR; };
9BE365681C60CFCE00C61A55 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
9BE3656F1C60D07B00C61A55 /* Closure.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Closure.swift; sourceTree = "<group>"; };
9BE365701C60D07B00C61A55 /* PrivateSet.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrivateSet.swift; sourceTree = "<group>"; };
9BE365711C60D07B00C61A55 /* Semicolon.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Semicolon.swift; sourceTree = "<group>"; };
9BE365721C60D07B00C61A55 /* Breakpoint.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Breakpoint.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -68,7 +66,6 @@
isa = PBXGroup;
children = (
9BE365681C60CFCE00C61A55 /* main.swift */,
9BE3656F1C60D07B00C61A55 /* Closure.swift */,
9BE365701C60D07B00C61A55 /* PrivateSet.swift */,
9BE365711C60D07B00C61A55 /* Semicolon.swift */,
9BE365721C60D07B00C61A55 /* Breakpoint.swift */,
Expand Down Expand Up @@ -137,7 +134,6 @@
9BE365691C60CFCE00C61A55 /* main.swift in Sources */,
9BE365781C60D07B00C61A55 /* ReuseIdentifier.swift in Sources */,
9BE365751C60D07B00C61A55 /* PrivateSet.swift in Sources */,
9BE365741C60D07B00C61A55 /* Closure.swift in Sources */,
9BE365771C60D07B00C61A55 /* Breakpoint.swift in Sources */,
9BE365761C60D07B00C61A55 /* Semicolon.swift in Sources */,
);
Expand Down Expand Up @@ -259,6 +255,7 @@
9BE3656E1C60CFCE00C61A55 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
24 changes: 0 additions & 24 deletions SwiftTips/SwiftTips/Closure.swift

This file was deleted.

9 changes: 9 additions & 0 deletions SwiftTips/SwiftTips/Semicolon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ import Foundation
func doSomething() {
let error: AnyObject? = nil
guard error == nil else { print("Error information"); return }

/**
* Old version
*/
guard error == nil
else {
print("Error information")
return
}
}

0 comments on commit fc14fa2

Please sign in to comment.