use URL Feed

This commit is contained in:
nixzhu
2016-01-15 09:28:07 +08:00
parent 4b647ef9ce
commit 8a761a8cf9
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -2975,7 +2975,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "-D DEBUG -D STAGING_";
OTHER_SWIFT_FLAGS = "-D DEBUG -D STAGING";
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
@@ -948,7 +948,10 @@ extension FeedsViewController: UITableViewDataSource, UITableViewDelegate {
switch feed.kind {
case .Text:
//let cell = tableView.dequeueReusableCellWithIdentifier(feedBasicCellID) as! FeedBasicCell
let cell = tableView.dequeueReusableCellWithIdentifier(feedBasicCellID) as! FeedBasicCell
return cell
case .URL:
let cell = tableView.dequeueReusableCellWithIdentifier(feedURLCellID) as! FeedURLCell
return cell
+3 -1
View File
@@ -125,7 +125,9 @@ struct FeedCellLayout {
switch feed.kind {
case .Text:
//height = FeedBasicCell.heightOfFeed(feed)
height = FeedBasicCell.heightOfFeed(feed)
case .URL:
height = FeedURLCell.heightOfFeed(feed)
case .Image: