Skip to content

Commit f293946

Browse files
author
15038777234
committed
修复一些变量为 let
1 parent 7ceb863 commit f293946

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ZHTableViewGroupSwift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ZHTableViewGroupSwift'
11-
s.version = '0.1.0'
11+
s.version = '0.1.1'
1212
s.summary = 'ZHTableViewGroup为 UITableView 而生'
1313
s.homepage = 'https://github.com/josercc/ZHTableViewGroupSwift'
1414
s.license = { :type => 'MIT', :file => 'LICENSE' }

ZHTableViewGroupSwift/Classes/ZHTableViewGroup.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ public class ZHTableViewGroup: NSObject {
3131

3232

3333
public func addCell(completionHandle:ZHTableViewGroupAddCellCompletionHandle) {
34-
var cell = ZHTableViewCell()
34+
let cell = ZHTableViewCell()
3535
completionHandle(cell)
3636
cells.append(cell)
3737
}
3838

3939
public func addHeader(completionHandle:ZHTableViewGroupAddHeaderFooterCompletionHandle) {
40-
var header = ZHTableViewHeaderFooter(style: .header)
40+
let header = ZHTableViewHeaderFooter(style: .header)
4141
completionHandle(header)
4242
self.header = header
4343
}
4444

4545
public func addFooter(completionHandle:ZHTableViewGroupAddHeaderFooterCompletionHandle) {
46-
var footer = ZHTableViewHeaderFooter(style: .footer)
46+
let footer = ZHTableViewHeaderFooter(style: .footer)
4747
completionHandle(footer)
4848
self.footer = footer
4949
}

0 commit comments

Comments
 (0)