Commit 57c457f7 authored by 曹云霄's avatar 曹云霄

修改项说明:

parent 02a78e8b
//
// AnnouncementContentTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AnnouncementContentTableViewCell : UITableViewCell
@end
//
// AnnouncementContentTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "AnnouncementContentTableViewCell.h"
@implementation AnnouncementContentTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// AnnouncementListTableViewCell.h
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AnnouncementListTableViewCell : UITableViewCell
/**
公告项图片
*/
@property (weak, nonatomic) IBOutlet UIImageView *annountcementImageView;
/**
公告项标题
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementTitleLabel;
/**
公告项大小
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementSizeLabel;
/**
公告附件
*/
@property (nonatomic,strong) TOAttachmentEntity *attachmentEntity;
@end
//
// AnnouncementListTableViewCell.m
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "AnnouncementListTableViewCell.h"
@implementation AnnouncementListTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setAttachmentEntity:(TOAttachmentEntity *)attachmentEntity
{
_attachmentEntity = attachmentEntity;
[self.annountcementImageView sd_setImageWithURL:[NSURL URLWithString:_attachmentEntity.thumbnailUrl] placeholderImage:REPLACEIMAGE];
// self.annountcementSizeLabel.text = _attachmentEnt
self.annountcementTitleLabel.text = _attachmentEntity.fileName;
}
@end
......@@ -9,6 +9,7 @@
#import "AnnouncementViewController.h"
#import "AnnouncementTableViewCell.h"
#import "ScreeningButton.h"
#import "AnnountcementDetailViewController.h"
@interface AnnouncementViewController ()<UITableViewDelegate,UITableViewDataSource,ReturnTableviewcellIndexpathdelegate>
......@@ -217,6 +218,14 @@
return self.afficheArray.count;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
AnnountcementDetailViewController *detail = [[[self class] getAnnouncementStoryboardClass]instantiateViewControllerWithIdentifier:@"AnnountcementDetailViewController"];
TOAfficheEntity *entity = self.afficheArray[indexPath.row];
detail.announcementID = entity.fid;
[self.navigationController pushViewController:detail animated:YES];
}
#pragma mark - lazy
- (AfficheCondition *)afficheModel
{
......
......@@ -10,4 +10,12 @@
@interface AnnountcementDetailViewController : BaseViewController
@property (weak, nonatomic) IBOutlet UITableView *announcementDetailsTableView;
/**
公告ID
*/
@property (nonatomic,copy) NSString *announcementID;
@end
......@@ -7,8 +7,44 @@
//
#import "AnnountcementDetailViewController.h"
#import "WkWebViewViewController.h"
#import "AnnouncementContentTableViewCell.h"
#import "AnnouncementListTableViewCell.h"
@interface AnnountcementDetailViewController ()<UITableViewDelegate,UITableViewDataSource>
/**
公告标题
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementTitleLabel;
/**
公告类型
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementTypeLabel;
/**
公告时间
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementTimeLabel;
/**
公告阅读数
*/
@property (weak, nonatomic) IBOutlet UILabel *annountcementReadCountLabel;
/**
公告内容高度
*/
@property (nonatomic,assign) CGFloat annountcementContentHeigt;
/**
公告数据源
*/
@property (nonatomic,strong) TOAfficheEntity *afficheResult;
@interface AnnountcementDetailViewController ()
@end
......@@ -16,22 +52,86 @@
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self setUpTableViewAction];
[self addChildWebViewController];
[self getAnnouncementDetailsDatasAction];
}
#pragma mark - 设置Tableview
- (void)setUpTableViewAction
{
self.announcementDetailsTableView.tableFooterView = [UIView new];
[self.announcementDetailsTableView registerClass:[AnnouncementContentTableViewCell class] forCellReuseIdentifier:@"AnnouncementContentTableViewCell"];
//headerView
}
#pragma mark - WKWebView
- (void)addChildWebViewController
{
WS(weakSelf);
weakSelf.annountcementContentHeigt = 44;
WkWebViewViewController *webView = [[WkWebViewViewController alloc]initWithReturnContentSize:^(CGFloat contentHeight) {
weakSelf.annountcementContentHeigt = contentHeight;
[weakSelf.announcementDetailsTableView reloadData];
webView.view.frame = CGRectMake(0, 0, ScreenWidth, contentHeight);
}];
[self addChildViewController:webView];
}
#pragma mark - 获取公告详情数据
- (void)getAnnouncementDetailsDatasAction
{
WS(weakSelf);
[self CreateMBProgressHUDLoding];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(AFFICHEdETAILS),self.announcementID] WithCallClass:weakSelf WithRequestType:ONE WithParameter:nil WithReturnValueBlock:^(id returnValue) {
[weakSelf RemoveMBProgressHUDLoding];
if ([returnValue[@"code"] isEqualToNumber:@0]) {
weakSelf.afficheResult = [[TOAfficheEntity alloc]initWithDictionary:returnValue[@"data"] error:nil];
WkWebViewViewController *webView = [weakSelf.childViewControllers firstObject];
webView.htmlString = weakSelf.afficheResult.content;
}else {
[weakSelf ErrorMBProgressView:returnValue[@"message"]];
}
[weakSelf.announcementDetailsTableView reloadData];
} WithErrorCodeBlock:^(id errorCodeValue) {
[weakSelf RemoveMBProgressHUDLoding];
[weakSelf ErrorMBProgressView:NETWORK];
} WithFailureBlock:^(NSError *error) {
[weakSelf RemoveMBProgressHUDLoding];
[weakSelf ErrorMBProgressView:error.localizedDescription];
}];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
#pragma mark - <UITableViewDelegate,UITableViewDataSource>
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 0) {
AnnouncementContentTableViewCell *contentCell = [tableView dequeueReusableCellWithIdentifier:@"AnnouncementContentTableViewCell" forIndexPath:indexPath];
[contentCell.contentView addSubview:self.childViewControllers[0].view];
return contentCell;
}
AnnouncementListTableViewCell *listCell = [tableView dequeueReusableCellWithIdentifier:@"AnnouncementListTableViewCell" forIndexPath:indexPath];
listCell.attachmentEntity = self.afficheResult.attachmentUrls[indexPath.row-1];
return listCell;
}
/*
#pragma mark - Navigation
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.afficheResult.attachmentUrls.count+1;
}
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row == 0) {
return self.annountcementContentHeigt;
}
return 80;
}
*/
@end
//
// WkWebViewViewController.h
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
#import <WebKit/WebKit.h>
typedef void(^returnContentHeight)(CGFloat height);
@interface WkWebViewViewController : BaseViewController<WKNavigationDelegate>
@property (nonatomic,strong) UIWebView *contentWebView;
@property (nonatomic,copy) returnContentHeight contentHeight;
@property (nonatomic,copy) NSString *htmlString;
/**
初始化
@param htmlString HTML字符串
@param block 返回content Height
*/
- (instancetype)initWithReturnContentSize:(void(^)(CGFloat contentHeight))block;
@end
//
// WkWebViewViewController.m
// Lighting
//
// Created by 曹云霄 on 2016/11/24.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "WkWebViewViewController.h"
@interface WkWebViewViewController ()<UIWebViewDelegate>
@end
@implementation WkWebViewViewController
- (void)viewDidLoad {
[super viewDidLoad];
}
#pragma mark - 初始化
- (instancetype)initWithReturnContentSize:(void(^)(CGFloat contentHeight))block
{
if (self = [super init]) {
self.contentWebView = [[UIWebView alloc]initWithFrame:CGRectMake(10, 10, ScreenWidth, 0.01)];
self.contentWebView.delegate = self;
self.contentHeight = block;
[self.view addSubview:self.contentWebView];
}
return self;
}
- (void)setHtmlString:(NSString *)htmlString
{
_htmlString = htmlString;
[self.contentWebView loadHTMLString:_htmlString baseURL:nil];
}
#pragma mark - <WKNavigationDelegate>
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
NSLog(@"%f",webView.scrollView.contentSize.height);
}
- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(null_unspecified WKNavigation *)navigation
{
[self CreateMBProgressHUDLoding];
}
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{
webView.height = webView.scrollView.contentSize.height;
[self RemoveMBProgressHUDLoding];
if (self.contentHeight) {
self.contentHeight(webView.scrollView.contentSize.height);
}
NSLog(@"%f",webView.scrollView.contentSize.height);
}
- (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error
{
[self ErrorMBProgressView:@"加载失败"];
[self dismissViewControllerAnimated:YES completion:nil];
}
@end
......@@ -150,6 +150,7 @@
29A938271CDAE31B00F21E54 /* ProductDetailsHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 29A938261CDAE31B00F21E54 /* ProductDetailsHeaderView.xib */; };
29A974CA1D72F9C80012AFA1 /* RebateSuccessTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A974C91D72F9C80012AFA1 /* RebateSuccessTableViewController.m */; };
29A9DCAE1CEB643C00A7567A /* CustomWKWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29A9DCAC1CEB643C00A7567A /* CustomWKWebViewController.m */; };
29ABA6EA1DE686D5007D8012 /* WkWebViewViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29ABA6E91DE686D5007D8012 /* WkWebViewViewController.m */; };
29B3EE711DCE16130065FCCF /* LuckyDrawViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B3EE701DCE16130065FCCF /* LuckyDrawViewController.m */; };
29BAA3AB1DC9FB5B00927D04 /* PromptTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BAA3AA1DC9FB5B00927D04 /* PromptTableViewCell.m */; };
29BB27681CD9D38E009A0813 /* AllpriceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29BB27671CD9D38E009A0813 /* AllpriceTableViewCell.m */; };
......@@ -185,6 +186,8 @@
29E2D3301DB8AFD500443170 /* MDScratchImageView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29E2D32E1DB8AFD500443170 /* MDScratchImageView.mm */; };
29E2D33C1DB8BE7F00443170 /* CardAmplificationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 29E2D33A1DB8BE7F00443170 /* CardAmplificationViewController.m */; };
29E2D33D1DB8BE7F00443170 /* CardAmplificationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 29E2D33B1DB8BE7F00443170 /* CardAmplificationViewController.xib */; };
29E35F6E1DE6827900103BE3 /* AnnouncementListTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29E35F6D1DE6827900103BE3 /* AnnouncementListTableViewCell.m */; };
29E35F711DE6828D00103BE3 /* AnnouncementContentTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29E35F701DE6828D00103BE3 /* AnnouncementContentTableViewCell.m */; };
29E384BE1CE9933300888199 /* AdditionalTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29E384BC1CE9933300888199 /* AdditionalTableViewCell.m */; };
29E384BF1CE9933300888199 /* AdditionalTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 29E384BD1CE9933300888199 /* AdditionalTableViewCell.xib */; };
29E384C81CE9A8BF00888199 /* SearchCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 29E384C71CE9A8BF00888199 /* SearchCollectionViewCell.m */; };
......@@ -495,6 +498,8 @@
29A974C91D72F9C80012AFA1 /* RebateSuccessTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RebateSuccessTableViewController.m; sourceTree = "<group>"; };
29A9DCAB1CEB643C00A7567A /* CustomWKWebViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomWKWebViewController.h; sourceTree = "<group>"; };
29A9DCAC1CEB643C00A7567A /* CustomWKWebViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomWKWebViewController.m; sourceTree = "<group>"; };
29ABA6E81DE686D5007D8012 /* WkWebViewViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WkWebViewViewController.h; sourceTree = "<group>"; };
29ABA6E91DE686D5007D8012 /* WkWebViewViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WkWebViewViewController.m; sourceTree = "<group>"; };
29B3EE6F1DCE16130065FCCF /* LuckyDrawViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LuckyDrawViewController.h; sourceTree = "<group>"; };
29B3EE701DCE16130065FCCF /* LuckyDrawViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LuckyDrawViewController.m; sourceTree = "<group>"; };
29BAA3A91DC9FB5B00927D04 /* PromptTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PromptTableViewCell.h; sourceTree = "<group>"; };
......@@ -558,6 +563,10 @@
29E2D3391DB8BE7F00443170 /* CardAmplificationViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CardAmplificationViewController.h; sourceTree = "<group>"; };
29E2D33A1DB8BE7F00443170 /* CardAmplificationViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = CardAmplificationViewController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
29E2D33B1DB8BE7F00443170 /* CardAmplificationViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CardAmplificationViewController.xib; sourceTree = "<group>"; };
29E35F6C1DE6827900103BE3 /* AnnouncementListTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AnnouncementListTableViewCell.h; sourceTree = "<group>"; };
29E35F6D1DE6827900103BE3 /* AnnouncementListTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AnnouncementListTableViewCell.m; sourceTree = "<group>"; };
29E35F6F1DE6828D00103BE3 /* AnnouncementContentTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AnnouncementContentTableViewCell.h; sourceTree = "<group>"; };
29E35F701DE6828D00103BE3 /* AnnouncementContentTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AnnouncementContentTableViewCell.m; sourceTree = "<group>"; };
29E384BB1CE9933300888199 /* AdditionalTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AdditionalTableViewCell.h; sourceTree = "<group>"; };
29E384BC1CE9933300888199 /* AdditionalTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AdditionalTableViewCell.m; sourceTree = "<group>"; };
29E384BD1CE9933300888199 /* AdditionalTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = AdditionalTableViewCell.xib; sourceTree = "<group>"; };
......@@ -1385,6 +1394,10 @@
children = (
29837B571DE59E09009CF614 /* AnnouncementTableViewCell.h */,
29837B581DE59E09009CF614 /* AnnouncementTableViewCell.m */,
29E35F6C1DE6827900103BE3 /* AnnouncementListTableViewCell.h */,
29E35F6D1DE6827900103BE3 /* AnnouncementListTableViewCell.m */,
29E35F6F1DE6828D00103BE3 /* AnnouncementContentTableViewCell.h */,
29E35F701DE6828D00103BE3 /* AnnouncementContentTableViewCell.m */,
);
name = Cells;
sourceTree = "<group>";
......@@ -1506,6 +1519,15 @@
name = PreviewPDF;
sourceTree = "<group>";
};
29ABA6E71DE686B4007D8012 /* Views */ = {
isa = PBXGroup;
children = (
29ABA6E81DE686D5007D8012 /* WkWebViewViewController.h */,
29ABA6E91DE686D5007D8012 /* WkWebViewViewController.m */,
);
name = Views;
sourceTree = "<group>";
};
29B3EE6E1DCE15EC0065FCCF /* MyLuckyDraw */ = {
isa = PBXGroup;
children = (
......@@ -1599,6 +1621,7 @@
29C0E7431DD98943006CCCF9 /* AnnouncementViewController.m */,
29FF55431DE5F29400406852 /* AnnountcementDetailViewController.h */,
29FF55441DE5F29400406852 /* AnnountcementDetailViewController.m */,
29ABA6E71DE686B4007D8012 /* Views */,
29837B521DE598E8009CF614 /* Cells */,
29837B511DE598C9009CF614 /* CustomLabels */,
);
......@@ -2309,6 +2332,7 @@
0447085E1CD7C06B00555827 /* LoginViewController.m in Sources */,
29E9445C1DE45583007CD26C /* PrizeExchangeSectionTableViewCell.m in Sources */,
298534601DD4B0290023BBAE /* AirPrintManager.m in Sources */,
29ABA6EA1DE686D5007D8012 /* WkWebViewViewController.m in Sources */,
2928F83B1CD0A0CE0036D761 /* CustomTabbarController.m in Sources */,
295DEA9C1DB70FB9006ED4A6 /* RightControlTableViewCell.m in Sources */,
29A9DCAE1CEB643C00A7567A /* CustomWKWebViewController.m in Sources */,
......@@ -2324,6 +2348,7 @@
29E28CE81CE0B91B00812A55 /* HENLENSONG.m in Sources */,
299249441CDB51B100786B1E /* ModifyShippingAddressView.m in Sources */,
29E9445F1DE455AC007CD26C /* PrizeExchangeInformationTableViewCell.m in Sources */,
29E35F711DE6828D00103BE3 /* AnnouncementContentTableViewCell.m in Sources */,
295DE56C1DDC5DFA00E27725 /* GuideIntegralViewController.m in Sources */,
2906B5D71CD89246000849B4 /* ClientDetailsTableViewCell.m in Sources */,
29BB27801CD9DFD7009A0813 /* AboutViewController.m in Sources */,
......@@ -2335,6 +2360,7 @@
29834EC01CDF5E4E001A484F /* ScreeningFirstCollectionViewCell.m in Sources */,
29834EC51CDF76C1001A484F /* UserViewController.m in Sources */,
29A974CA1D72F9C80012AFA1 /* RebateSuccessTableViewController.m in Sources */,
29E35F6E1DE6827900103BE3 /* AnnouncementListTableViewCell.m in Sources */,
29E2D3271DB88D8B00443170 /* CardOrderInformationReusableView.m in Sources */,
29FF55451DE5F29400406852 /* AnnountcementDetailViewController.m in Sources */,
2962D06D1CD1A43A0058829D /* ClientViewController.m in Sources */,
......
......@@ -14,15 +14,15 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="79" sectionHeaderHeight="28" sectionFooterHeight="28" id="dJk-hW-r6I">
<frame key="frameInset" minY="124"/>
<frame key="frameInset" minX="0.5" minY="124" maxY="0.5"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.92941176470588238" green="0.93333333333333335" blue="0.93725490196078431" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="AnnouncementTableViewCell" rowHeight="80" id="JBe-hh-kVA" customClass="AnnouncementTableViewCell">
<rect key="frame" x="0.0" y="28" width="1024" height="80"/>
<rect key="frame" x="0.0" y="28" width="1023.5" height="80"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JBe-hh-kVA" id="xVc-uc-PDl">
<frame key="frameInset" width="830" height="79"/>
<frame key="frameInset" width="990.5" height="79.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="品牌咨询" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="uFh-Bz-DRu" customClass="CustomBorderLabel">
......@@ -33,14 +33,14 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="亚洲风新品发布会" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="vAA-od-PUc">
<frame key="frameInset" minX="97" minY="16" width="47.41%" height="21"/>
<frame key="frameInset" minX="96.5" minY="16" width="47.43%" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="发布时间:2016年11月23日17:24:34" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="cUg-l9-anJ">
<frame key="frameInset" minX="28" width="34.04%" height="21" maxY="16"/>
<frame key="frameInset" minX="27.5" width="34.06%" height="21" maxY="17.5"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
......@@ -61,7 +61,7 @@
</connections>
</tableView>
<view contentMode="scaleToFill" misplaced="YES" id="EHt-av-SPm">
<frame key="frameInset" minY="64" height="60" maxX="0.5"/>
<frame key="frameInset" minX="0.5" minY="64" height="60" maxX="1"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="ZGl-RM-alD">
......@@ -94,10 +94,117 @@
</objects>
<point key="canvasLocation" x="255" y="-364"/>
</scene>
<!--Annountcement Detail View Controller-->
<scene sceneID="PAg-Vx-GQr">
<objects>
<viewController storyboardIdentifier="AnnountcementDetailViewController" id="Pbe-Qr-nKa" customClass="AnnountcementDetailViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="u2X-Zg-g9v">
<rect key="frame" x="0.0" y="0.0" width="1024" height="768"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="67" sectionHeaderHeight="28" sectionFooterHeight="28" id="Nxo-16-vKa">
<frame key="frameInset" minX="-0.5" minY="64" maxX="1" maxY="0.5"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.93333333330000001" blue="0.93725490199999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<view key="tableFooterView" contentMode="scaleToFill" misplaced="YES" id="Fm8-gj-pKn" customClass="AnnouncementHeaderView">
<rect key="frame" x="0.0" y="108" width="1022.5" height="60"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="亚洲风格产品发布会" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="t4k-fa-t7j">
<frame key="frameInset" minX="27.5" minY="8" height="21" maxX="28.5"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="品牌资讯" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="8Ae-Oz-bjL">
<frame key="frameInset" minX="28" minY="35" width="61" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="2016年11月24日09:52:40" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="gDl-gb-obg">
<frame key="frameInset" minX="96.5" minY="35" width="17.33%" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="read" id="J6n-Aw-3EN">
<frame key="frameInset" minX="289" minY="37" width="15" height="15"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="10000" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="9he-pL-hOf">
<frame key="frameInset" minX="311.5" minY="34" width="14.07%" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.92941176469999998" green="0.93333333330000001" blue="0.93725490199999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" selectionStyle="default" accessoryType="detailDisclosureButton" indentationWidth="10" reuseIdentifier="AnnouncementListTableViewCell" rowHeight="80" id="44v-S2-v3P" customClass="AnnouncementListTableViewCell">
<rect key="frame" x="0.0" y="28" width="1023.5" height="80"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="44v-S2-v3P" id="TiP-Pq-14C">
<frame key="frameInset" width="796.5" height="79"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" id="Bee-ge-dHe">
<frame key="frameInset" minX="10" minY="44.74%" width="60" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="1212121.pdf" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Ola-dX-vtB">
<frame key="frameInset" minX="88" minY="19" width="54.48%" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="92.6k" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="yly-Za-TMt">
<frame key="frameInset" minX="88" minY="38" width="23.57%" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<connections>
<outlet property="annountcementImageView" destination="Bee-ge-dHe" id="ynU-ZA-d8x"/>
<outlet property="annountcementSizeLabel" destination="yly-Za-TMt" id="lgt-cr-5yH"/>
<outlet property="annountcementTitleLabel" destination="Ola-dX-vtB" id="Ef2-Mb-PaE"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="Pbe-Qr-nKa" id="L9J-Xr-Uah"/>
<outlet property="delegate" destination="Pbe-Qr-nKa" id="4z4-8G-BUX"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<connections>
<outlet property="announcementDetailsTableView" destination="Nxo-16-vKa" id="hrt-Iv-CUh"/>
<outlet property="annountcementReadCountLabel" destination="9he-pL-hOf" id="0FG-We-C5c"/>
<outlet property="annountcementTimeLabel" destination="gDl-gb-obg" id="hga-ou-2zl"/>
<outlet property="annountcementTitleLabel" destination="t4k-fa-t7j" id="JXY-wz-b1a"/>
<outlet property="annountcementTypeLabel" destination="8Ae-Oz-bjL" id="P3G-ZU-Mjf"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="tgo-zn-IkV" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1445" y="-364"/>
</scene>
</scenes>
<resources>
<image name="asc" width="7" height="13"/>
<image name="desc" width="7" height="13"/>
<image name="read" width="14" height="12"/>
</resources>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
......
{
"images" : [
{
"idiom" : "universal",
"filename" : "read.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "read@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "read@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment