|
@@ -129,9 +129,7 @@ public class EditorStarMessages: UIViewController, UITableViewDataSource, UITabl
|
|
|
containerView.addSubview(dateView)
|
|
|
dateView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
var topAnchor = dateView.topAnchor.constraint(equalTo: containerView.topAnchor)
|
|
|
- if section == 0 {
|
|
|
- topAnchor = dateView.topAnchor.constraint(equalTo: containerView.topAnchor, constant: 10.0)
|
|
|
- }
|
|
|
+ topAnchor = dateView.topAnchor.constraint(equalTo: containerView.topAnchor, constant: 10.0)
|
|
|
NSLayoutConstraint.activate([
|
|
|
topAnchor,
|
|
|
dateView.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
|
|
@@ -160,10 +158,7 @@ public class EditorStarMessages: UIViewController, UITableViewDataSource, UITabl
|
|
|
}
|
|
|
|
|
|
public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
|
|
- if section == 0 {
|
|
|
- return 40
|
|
|
- }
|
|
|
- return 30
|
|
|
+ return 40
|
|
|
}
|
|
|
|
|
|
public func numberOfSections(in tableView: UITableView) -> Int {
|
|
@@ -805,6 +800,7 @@ public class EditorStarMessages: UIViewController, UITableViewDataSource, UITabl
|
|
|
], replace: true)
|
|
|
dataURL = json
|
|
|
showLink()
|
|
|
+ tableView.reloadRows(at: [indexPath], with: .none)
|
|
|
} catch {
|
|
|
rollback.pointee = true
|
|
|
//print(error)
|