Skip to content

Commit

Permalink
Update Outdated iOS Example Code (Alamofire#3268)
Browse files Browse the repository at this point in the history
* feat (Response) : add info for debugDescription

add parameters info for debugDescription of DataResponse and DownloadResponse

* refactor (Response) : update

* feat (Response) : add Response Body for debugDescription

* merge from Alamofire master

* style (iOS Example) : update style

* refactor (MasterViewController) : remove an unused property

* refactor (DetailViewController) : indexPath NSIndexPath -> IndexPath

* refactor (iOS Example) : update Main.storyboard

* refactor (DetailViewController) : indexPath NSIndexPath -> IndexPath

* Revert "style (iOS Example) : update style"

* refactor (DetailViewController) : indexPath NSIndexPath -> IndexPath

* Revert "refactor (iOS Example) : update Main.storyboard"

This reverts commit 5d46504.
  • Loading branch information
rain2540 authored Aug 15, 2020
1 parent 38f7ba7 commit f628497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Example/Source/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ extension DetailViewController {
}

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch Sections(rawValue: (indexPath as NSIndexPath).section)! {
switch Sections(rawValue: indexPath.section)! {
case .headers:
let cell = tableView.dequeueReusableCell(withIdentifier: "Header")!
let field = headers.keys.sorted(by: <)[indexPath.row]
Expand Down Expand Up @@ -191,7 +191,7 @@ extension DetailViewController {
}

override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
switch Sections(rawValue: (indexPath as NSIndexPath).section)! {
switch Sections(rawValue: indexPath.section)! {
case .body:
return 300
default:
Expand Down
1 change: 0 additions & 1 deletion Example/Source/MasterViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class MasterViewController: UITableViewController {
@IBOutlet var titleImageView: UIImageView!

var detailViewController: DetailViewController?
var objects = NSMutableArray()

private var reachability: NetworkReachabilityManager!

Expand Down

0 comments on commit f628497

Please sign in to comment.