123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import UIKit
- class NotificationViewController: UIViewController {
- @IBOutlet var navigationBar: UINavigationBar!
- @IBOutlet var notificationTableView: UITableView!
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- notificationTableView.delegate = self
- notificationTableView.dataSource = self
- }
-
-
- }
- extension NotificationViewController: UITableViewDelegate, UITableViewDataSource {
- func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return 1
- }
-
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- guard let cell = tableView.dequeueReusableCell(withIdentifier: "NotificationTableViewCell", for: indexPath) as? NotificationTableViewCell else {
- return UITableViewCell()
- }
-
- cell.customView.layer.cornerRadius = 10
- cell.messageLabel.text = "Test notification."
-
- return cell
- }
- }
|