Skip to content

Commit 23fe0ef

Browse files
author
Eric Wu
committed
修复bug
1 parent 3aba8a4 commit 23fe0ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CRBoostSwift/Classes/UIKit+CRBoost.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ extension UIView {
163163
}
164164

165165
@discardableResult
166-
public class func loadFromNib<T>(nibName: String, index: Int = 0) -> T where T: UIView {
166+
public class func loadFromNib<T>(nibName: String) -> T where T: UIView {
167167
let nib = Bundle.main.loadNibNamed(nibName, owner: self, options: [:])
168-
let view = nib![index]
168+
let view = nib![0]
169169
return view as! T
170170
}
171171

0 commit comments

Comments
 (0)