View swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
guard let items = items else { | |
return 0 | |
} | |
return items.count | |
} | |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
guard let item = items?[indexPath.row] else { |
View gist:f065cd6d5b2d95ac15b9f29b080508fe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
guard let items = items else { | |
return 0 | |
} | |
return items.count | |
} | |
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { | |
guard let item = items?[indexPath.row] else { |
View RxAlamofire+Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Alamofire | |
import RxAlamofire | |
extension Alamofire.Request { | |
public func logRequest() -> Self { | |
print(terminator:"\n") | |
print("🚀 REQUEST: \(self.request!.URL!)", terminator:"\n") | |
debugPrint(self, terminator:"\n\n") | |
_ = rx_responseJSON() |