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

Commit

Permalink
😒Meizi 2.1 Released!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyyoung committed Feb 20, 2016
1 parent e8d8501 commit a10ab24
Show file tree
Hide file tree
Showing 50 changed files with 267 additions and 2,023 deletions.
249 changes: 35 additions & 214 deletions Meizi.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Meizi/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import <UIKit/UIKit.h>
#import <YTKNetwork/YTKNetworkConfig.h>
#import <YTKNetwork/YTKNetworkAgent.h>
#import <AFNetworking/AFNetworkActivityIndicatorManager.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>
Expand Down
8 changes: 1 addition & 7 deletions Meizi/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ @implementation AppDelegate

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

//Set Background Color
self.window.backgroundColor = [UIColor whiteColor];

//Set Network
[AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
[YTKNetworkConfig sharedInstance].baseUrl = BaseURL;

//Set UserAgent
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"};
[[NSUserDefaults standardUserDefaults] registerDefaults:userAgent];
[[YTKNetworkAgent sharedInstance] setValue:[NSSet setWithObjects:@"application/json", @"text/plain", @"text/javascript", @"text/json", @"text/html", @"text/css", nil] forKeyPath :@"_manager.responseSerializer.acceptableContentTypes"];

//Set SVProgressHUD
[SVProgressHUD setBackgroundColor:[UIColor colorWithWhite:0.0 alpha:0.9]];
Expand Down
530 changes: 12 additions & 518 deletions Meizi/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

10 changes: 3 additions & 7 deletions Meizi/Constant.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#ifndef Meizi_Constant_h
#define Meizi_Constant_h

#define SCREEN_WIDTH CGRectGetWidth([UIApplication sharedApplication].keyWindow.bounds)
#define SCREEN_HEIGHT CGRectGetHeight([UIApplication sharedApplication].keyWindow.bounds)
#define kScreenWidth CGRectGetWidth([UIApplication sharedApplication].keyWindow.bounds)
#define kScreenHeight CGRectGetHeight([UIApplication sharedApplication].keyWindow.bounds)

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

static NSString * const Meizi_All = @"0";
static NSString * const Meizi_DaXiong = @"2";
Expand All @@ -22,10 +22,6 @@ static NSString * const Meizi_MeiTui = @"3";
static NSString * const Meizi_QingXin = @"4";
static NSString * const Meizi_ZaHui = @"5";

static NSString * const DoubanGroupURL = @"http://www.douban.com/group/";
static NSString * const DoubanTopicURL = @"http://www.douban.com/group/topic/";
static NSString * const DoubanPeopleURL = @"http://www.douban.com/group/people/";

#endif


Expand Down
24 changes: 0 additions & 24 deletions Meizi/Groups.h

This file was deleted.

13 changes: 0 additions & 13 deletions Meizi/Groups.m

This file was deleted.

13 changes: 0 additions & 13 deletions Meizi/GroupsRequest.h

This file was deleted.

32 changes: 0 additions & 32 deletions Meizi/GroupsRequest.m

This file was deleted.

18 changes: 0 additions & 18 deletions Meizi/GroupsTableViewCell.h

This file was deleted.

18 changes: 0 additions & 18 deletions Meizi/GroupsTableViewCell.m

This file was deleted.

15 changes: 0 additions & 15 deletions Meizi/GroupsViewController.h

This file was deleted.

103 changes: 0 additions & 103 deletions Meizi/GroupsViewController.m

This file was deleted.

35 changes: 35 additions & 0 deletions Meizi/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,41 @@
"idiom" : "iphone",
"filename" : "Meizi_60pt_@3x.png",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
],
"info" : {
Expand Down
12 changes: 10 additions & 2 deletions Meizi/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>net.sunnyyoung.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
Expand All @@ -33,6 +38,9 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
7 changes: 2 additions & 5 deletions Meizi/Meizi.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@

@interface Meizi : NSObject

@property (nonatomic, copy) NSString *topic_id;
@property (nonatomic, copy) NSString *topic_title;
@property (nonatomic, copy) NSString *douban_group_id;
@property (nonatomic, copy) NSString *douban_topic_id;
@property (nonatomic, copy) NSString *img_url;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *src;

@end
Loading

0 comments on commit a10ab24

Please sign in to comment.