Skip to content

Commit

Permalink
结构整理
Browse files Browse the repository at this point in the history
  • Loading branch information
tbl00c committed Mar 7, 2018
1 parent 240f18d commit 24386fd
Show file tree
Hide file tree
Showing 99 changed files with 162 additions and 381 deletions.
340 changes: 152 additions & 188 deletions TLChat.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ typedef NS_ENUM(NSInteger, TLAccountButtonType) {
TLAccountButtonTypeTest,
};

@interface TLAccountViewController ()

@property (nonatomic, strong) UIImageView *imageView;

@end

@implementation TLAccountViewController

- (void)loadView {
Expand All @@ -41,21 +35,19 @@ - (void)loadView {
launchImageName = dict[@"UILaunchImageName"];
}
}
[self.imageView setImage:[UIImage imageNamed:launchImageName]];
[self.view addSubview:self.imageView];
[self.imageView mas_makeConstraints:^(MASConstraintMaker *make) {

self.view.addImageView(1).image(TLImage(launchImageName))
.masonry(^(MASConstraintMaker *make) {
make.edges.mas_equalTo(0);
}];
});

UIButton *(^createButton)(NSString *title, UIColor *bgColor, NSInteger tag) = ^UIButton *(NSString *title, UIColor *bgColor, NSInteger tag) {
UIButton *button = [[UIButton alloc] init];
[button setTag:tag];
[button setTitle:title forState:UIControlStateNormal];
[button setBackgroundColor:bgColor];
[button.titleLabel setFont:[UIFont systemFontOfSize:19]];
UIButton *button = UIButton.zz_create(tag)
.backgroundColor(bgColor)
.title(title).titleFont([UIFont systemFontOfSize:19])
.cornerRadius(5.0f)
.view;
[button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
[button.layer setMasksToBounds:YES];
[button.layer setCornerRadius:5.0f];
return button;
};

Expand Down Expand Up @@ -90,7 +82,6 @@ - (void)loadView {
}];
}


#pragma mark - # Event Response
- (void)buttonClicked:(UIButton *)sender
{
Expand Down Expand Up @@ -126,16 +117,4 @@ - (void)buttonClicked:(UIButton *)sender
}
}


#pragma mark - # Getter
- (UIImageView *)imageView
{
if (!_imageView) {
_imageView = [[UIImageView alloc] init];
}
return _imageView;
}



@end
21 changes: 0 additions & 21 deletions TLChat/Modules/Common/TLImageBrowser/TLImageBrowserController.h

This file was deleted.

91 changes: 0 additions & 91 deletions TLChat/Modules/Common/TLImageBrowser/TLImageBrowserController.m

This file was deleted.

13 changes: 0 additions & 13 deletions TLChat/Modules/Common/TLImagePicker/TLImagePickerController.h

This file was deleted.

37 changes: 0 additions & 37 deletions TLChat/Modules/Common/TLImagePicker/TLImagePickerController.m

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion TLChat/Modules/Moments/Resources/TestData/Moments.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"user" : { "userID" : "1002", "nikeName" : "陈美嘉", "avatarURL" : "http://i04.pic.sogou.com/d44a3766422d4930"},
"date" : "1520168008",
"detail" : {
"images" : ["http://p2.gexing.com/G1/M00/0C/3A/rBACE1MBs8_QSeZpAAChVX3kQcI875.jpg"],
"images" : ["http://imgbdb2.bendibao.com/beijing/20137/30/2013730154430304.jpg"],
},
"extension" : {
"likedFriends" : [
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 24386fd

Please sign in to comment.