Skip to content

Commit a266a51

Browse files
Shivam BhallaShivam Bhalla
authored andcommitted
Critical crash fix for incorrect bundle id in cell
1 parent 1c50f44 commit a266a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CFAlertViewController/CFAlertViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public class CFAlertViewController: UIViewController {
158158
NotificationCenter.default.addObserver(self, selector: #selector(textViewOrTextFieldDidBeginEditing), name: NSNotification.Name.UITextViewTextDidBeginEditing, object: nil)
159159

160160
// Register Cells For Table
161-
let actionCellNib = UINib(nibName: CFAlertActionTableViewCell.identifier(), bundle: nil)
161+
let actionCellNib = UINib(nibName: CFAlertActionTableViewCell.identifier(), bundle: Bundle(for: CFAlertViewController.self))
162162
tableView?.register(actionCellNib, forCellReuseIdentifier: CFAlertActionTableViewCell.identifier())
163-
let titleSubtitleCellNib = UINib(nibName: CFAlertTitleSubtitleTableViewCell.identifier(), bundle: nil)
163+
let titleSubtitleCellNib = UINib(nibName: CFAlertTitleSubtitleTableViewCell.identifier(), bundle: Bundle(for: CFAlertViewController.self))
164164
tableView?.register(titleSubtitleCellNib, forCellReuseIdentifier: CFAlertTitleSubtitleTableViewCell.identifier())
165165

166166
// Add Key Value Observer

0 commit comments

Comments
 (0)