Commit 92efa994 cgx

优化我的界面

1 个父辈 f555a88d
......@@ -53,7 +53,6 @@
D037C49D284F5DE8000F3089 /* DailyTaskSrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = D037C49C284F5DE8000F3089 /* DailyTaskSrollView.m */; };
D03AE82B281A9010001C0726 /* MyFeedDetailModel.m in Sources */ = {isa = PBXBuildFile; fileRef = D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */; };
D0496798283484CC00FB81E5 /* ProfileTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = D0496797283484CC00FB81E5 /* ProfileTableView.m */; };
D049679A2834C95100FB81E5 /* introduce.webp in Resources */ = {isa = PBXBuildFile; fileRef = D04967992834C95100FB81E5 /* introduce.webp */; };
D049679D2834E1AB00FB81E5 /* ProfileHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */; };
D04B3D9A27F6D4D90022F8DF /* LeadingController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3D9827F6D4D90022F8DF /* LeadingController.m */; };
D04B3DAC27F6EEB50022F8DF /* DSTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = D04B3DAA27F6EEB40022F8DF /* DSTabBarController.m */; };
......@@ -325,7 +324,6 @@
D03AE82A281A9010001C0726 /* MyFeedDetailModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyFeedDetailModel.m; sourceTree = "<group>"; };
D0496796283484CC00FB81E5 /* ProfileTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileTableView.h; sourceTree = "<group>"; };
D0496797283484CC00FB81E5 /* ProfileTableView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileTableView.m; sourceTree = "<group>"; };
D04967992834C95100FB81E5 /* introduce.webp */ = {isa = PBXFileReference; lastKnownFileType = file; path = introduce.webp; sourceTree = "<group>"; };
D049679B2834E1AB00FB81E5 /* ProfileHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ProfileHeaderView.h; sourceTree = "<group>"; };
D049679C2834E1AB00FB81E5 /* ProfileHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProfileHeaderView.m; sourceTree = "<group>"; };
D04B3D9727F6D4D90022F8DF /* LeadingController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LeadingController.h; sourceTree = "<group>"; };
......@@ -916,7 +914,6 @@
D04567A827F6D018009F0A82 /* Resource */ = {
isa = PBXGroup;
children = (
D04967992834C95100FB81E5 /* introduce.webp */,
D051032D282A4E9200560A0D /* fse.mp3 */,
D051032C282A4E9200560A0D /* instant_eternity.mp3 */,
D020CE1E280D915D00E7E82F /* invite_friend.webp */,
......@@ -1864,7 +1861,6 @@
D0B5ECB427F2D9E0003EDFE3 /* LaunchScreen.storyboard in Resources */,
D0B5ECB127F2D9E0003EDFE3 /* Assets.xcassets in Resources */,
D04B3DBD27F6F8090022F8DF /* Profile.storyboard in Resources */,
D049679A2834C95100FB81E5 /* introduce.webp in Resources */,
D051032F282A4E9200560A0D /* fse.mp3 in Resources */,
D0C09EDA28007D9100709D4C /* relax_lottie.json in Resources */,
D0CFD3D027FB3B920002982B /* launcher@3x.png in Resources */,
......
......@@ -7,7 +7,6 @@
#import "ProfileTableView.h"
#import "ProfileHeaderView.h"
#import <YYWebImage/YYWebImage.h>
#pragma mark - ProfileModel
@interface ProfileModel : NSObject
......@@ -166,7 +165,7 @@
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 42;
return 48;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
......@@ -246,15 +245,16 @@
- (UIView *)footerView {
if (!_footerView) {
_footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 144 + 15)];
YYAnimatedImageView *animatedView = [[YYAnimatedImageView alloc] initWithFrame:CGRectMake(15, 15, _footerView.width - 30, 120)];
NSString *path = [[NSBundle mainBundle] pathForAuxiliaryExecutable:@"introduce.webp"];
NSData *webpData = [NSData dataWithContentsOfFile:path];
animatedView.image = [YYImage imageWithData:webpData];
animatedView.userInteractionEnabled = YES;
[_footerView addSubview:animatedView];
CGFloat width = kScreenWidth - 30;
CGFloat height = 260*width/654.0;
_footerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, height + 27)];
UIImageView *introduceIV = [[UIImageView alloc] initWithFrame:CGRectMake(15, 15, width, height)];
[introduceIV cornerRadius:12.0];
introduceIV.userInteractionEnabled = YES;
[introduceIV yy_setImageWithURL:[NSURL URLWithString:@"https://img2.ydniu.com/sleep_ssmain/cbti_cover.png"] placeholder:[UIImage imageNamed:@"bannerPlaceholder"]];
[_footerView addSubview:introduceIV];
UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapCBTIAction)];
[animatedView addGestureRecognizer:tapGR];
[introduceIV addGestureRecognizer:tapGR];
}
return _footerView;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!