Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit a10ab24

Browse files
committed
😒Meizi 2.1 Released!!!
1 parent e8d8501 commit a10ab24

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+267
-2023
lines changed

Meizi.xcodeproj/project.pbxproj

Lines changed: 35 additions & 214 deletions
Large diffs are not rendered by default.

Meizi/AppDelegate.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import <UIKit/UIKit.h>
1010
#import <YTKNetwork/YTKNetworkConfig.h>
11+
#import <YTKNetwork/YTKNetworkAgent.h>
1112
#import <AFNetworking/AFNetworkActivityIndicatorManager.h>
1213

1314
@interface AppDelegate : UIResponder <UIApplicationDelegate>

Meizi/AppDelegate.m

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,10 @@ @implementation AppDelegate
1212

1313
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
1414

15-
//Set Background Color
16-
self.window.backgroundColor = [UIColor whiteColor];
17-
1815
//Set Network
1916
[AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
2017
[YTKNetworkConfig sharedInstance].baseUrl = BaseURL;
21-
22-
//Set UserAgent
23-
NSDictionary *userAgent = @{@"UserAgent": @"Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H143 Safari/600.1.4"};
24-
[[NSUserDefaults standardUserDefaults] registerDefaults:userAgent];
18+
[[YTKNetworkAgent sharedInstance] setValue:[NSSet setWithObjects:@"application/json", @"text/plain", @"text/javascript", @"text/json", @"text/html", @"text/css", nil] forKeyPath :@"_manager.responseSerializer.acceptableContentTypes"];
2519

2620
//Set SVProgressHUD
2721
[SVProgressHUD setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.9]];

Meizi/Base.lproj/Main.storyboard

Lines changed: 12 additions & 518 deletions
Large diffs are not rendered by default.

Meizi/Constant.h

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
#ifndef Meizi_Constant_h
1010
#define Meizi_Constant_h
1111

12-
#define SCREEN_WIDTH CGRectGetWidth([UIApplication sharedApplication].keyWindow.bounds)
13-
#define SCREEN_HEIGHT CGRectGetHeight([UIApplication sharedApplication].keyWindow.bounds)
12+
#define kScreenWidth CGRectGetWidth([UIApplication sharedApplication].keyWindow.bounds)
13+
#define kScreenHeight CGRectGetHeight([UIApplication sharedApplication].keyWindow.bounds)
1414

15-
static NSString * const BaseURL = @"http://api.xiaojianjian.net";
15+
static NSString * const BaseURL = @"http://www.dbmeinv.com";
1616

1717
static NSString * const Meizi_All = @"0";
1818
static NSString * const Meizi_DaXiong = @"2";
@@ -22,10 +22,6 @@ static NSString * const Meizi_MeiTui = @"3";
2222
static NSString * const Meizi_QingXin = @"4";
2323
static NSString * const Meizi_ZaHui = @"5";
2424

25-
static NSString * const DoubanGroupURL = @"http://www.douban.com/group/";
26-
static NSString * const DoubanTopicURL = @"http://www.douban.com/group/topic/";
27-
static NSString * const DoubanPeopleURL = @"http://www.douban.com/group/people/";
28-
2925
#endif
3026

3127

Meizi/Groups.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

Meizi/Groups.m

Lines changed: 0 additions & 13 deletions
This file was deleted.

Meizi/GroupsRequest.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

Meizi/GroupsRequest.m

Lines changed: 0 additions & 32 deletions
This file was deleted.

Meizi/GroupsTableViewCell.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)