Commit b9c98cd0 authored by Sandy's avatar Sandy

搭建框架

parent aef626d2
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
086A525E518E879144624A1E /* libPods-hdmall_base-HDMall.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1532C4741ABCEBBC970F7FC5 /* libPods-hdmall_base-HDMall.a */; }; 086A525E518E879144624A1E /* libPods-hdmall_base-HDMall.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1532C4741ABCEBBC970F7FC5 /* libPods-hdmall_base-HDMall.a */; };
8F1040731F22002700B4C16E /* HDMall_TEST.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8F1040721F22002700B4C16E /* HDMall_TEST.plist */; }; 8F1040731F22002700B4C16E /* HDMall_TEST.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8F1040721F22002700B4C16E /* HDMall_TEST.plist */; };
8F1040741F22002700B4C16E /* HDMall_TEST.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8F1040721F22002700B4C16E /* HDMall_TEST.plist */; }; 8F1040741F22002700B4C16E /* HDMall_TEST.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8F1040721F22002700B4C16E /* HDMall_TEST.plist */; };
8F1040B81F25C8A000B4C16E /* MineTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F1040B71F25C8A000B4C16E /* MineTableViewController.m */; };
8F1040B91F25C8A000B4C16E /* MineTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F1040B71F25C8A000B4C16E /* MineTableViewController.m */; };
8F1040C61F25CA1800B4C16E /* BusinessCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F1040C51F25CA1800B4C16E /* BusinessCollectionViewController.m */; };
8F1040C71F25CA1800B4C16E /* BusinessCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F1040C51F25CA1800B4C16E /* BusinessCollectionViewController.m */; };
8F973BF21F21F6DD003D3ADB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F973BF01F21F6DD003D3ADB /* Main.storyboard */; }; 8F973BF21F21F6DD003D3ADB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F973BF01F21F6DD003D3ADB /* Main.storyboard */; };
8F973BF71F21F6DD003D3ADB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F973BF51F21F6DD003D3ADB /* LaunchScreen.storyboard */; }; 8F973BF71F21F6DD003D3ADB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8F973BF51F21F6DD003D3ADB /* LaunchScreen.storyboard */; };
8F973C051F21FB67003D3ADB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8F973C021F21FB67003D3ADB /* Assets.xcassets */; }; 8F973C051F21FB67003D3ADB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8F973C021F21FB67003D3ADB /* Assets.xcassets */; };
...@@ -32,6 +36,12 @@ ...@@ -32,6 +36,12 @@
3784BD616CA8AF0775D5526F /* libPods-hdmall_base-HDMall_TEST.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-hdmall_base-HDMall_TEST.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 3784BD616CA8AF0775D5526F /* libPods-hdmall_base-HDMall_TEST.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-hdmall_base-HDMall_TEST.a"; sourceTree = BUILT_PRODUCTS_DIR; };
46644CE95EC8A7A4892489B7 /* Pods-hdmall_base-HDMall_TEST.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hdmall_base-HDMall_TEST.release.xcconfig"; path = "Pods/Target Support Files/Pods-hdmall_base-HDMall_TEST/Pods-hdmall_base-HDMall_TEST.release.xcconfig"; sourceTree = "<group>"; }; 46644CE95EC8A7A4892489B7 /* Pods-hdmall_base-HDMall_TEST.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hdmall_base-HDMall_TEST.release.xcconfig"; path = "Pods/Target Support Files/Pods-hdmall_base-HDMall_TEST/Pods-hdmall_base-HDMall_TEST.release.xcconfig"; sourceTree = "<group>"; };
8F1040721F22002700B4C16E /* HDMall_TEST.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = HDMall_TEST.plist; sourceTree = "<group>"; }; 8F1040721F22002700B4C16E /* HDMall_TEST.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = HDMall_TEST.plist; sourceTree = "<group>"; };
8F1040B61F25C8A000B4C16E /* MineTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MineTableViewController.h; sourceTree = "<group>"; };
8F1040B71F25C8A000B4C16E /* MineTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MineTableViewController.m; sourceTree = "<group>"; };
8F1040C41F25CA1800B4C16E /* BusinessCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BusinessCollectionViewController.h; sourceTree = "<group>"; };
8F1040C51F25CA1800B4C16E /* BusinessCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BusinessCollectionViewController.m; sourceTree = "<group>"; };
8F1040C81F25CA8500B4C16E /* PrefixHeader.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefixHeader.pch; sourceTree = "<group>"; };
8F1040C91F25CB7A00B4C16E /* Global.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Global.h; sourceTree = "<group>"; };
8F973BE41F21F6DD003D3ADB /* HDMall.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HDMall.app; sourceTree = BUILT_PRODUCTS_DIR; }; 8F973BE41F21F6DD003D3ADB /* HDMall.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HDMall.app; sourceTree = BUILT_PRODUCTS_DIR; };
8F973BF11F21F6DD003D3ADB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; 8F973BF11F21F6DD003D3ADB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
8F973BF61F21F6DD003D3ADB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 8F973BF61F21F6DD003D3ADB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
...@@ -88,6 +98,47 @@ ...@@ -88,6 +98,47 @@
name = AppDelegate; name = AppDelegate;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
8F1040BF1F25CA0200B4C16E /* Main */ = {
isa = PBXGroup;
children = (
8F1040C01F25CA0200B4C16E /* Models */,
8F1040C11F25CA0200B4C16E /* ViewControllers */,
8F1040C21F25CA0200B4C16E /* ViewModels */,
8F1040C31F25CA0200B4C16E /* Views */,
);
path = Main;
sourceTree = "<group>";
};
8F1040C01F25CA0200B4C16E /* Models */ = {
isa = PBXGroup;
children = (
);
path = Models;
sourceTree = "<group>";
};
8F1040C11F25CA0200B4C16E /* ViewControllers */ = {
isa = PBXGroup;
children = (
8F1040C41F25CA1800B4C16E /* BusinessCollectionViewController.h */,
8F1040C51F25CA1800B4C16E /* BusinessCollectionViewController.m */,
);
path = ViewControllers;
sourceTree = "<group>";
};
8F1040C21F25CA0200B4C16E /* ViewModels */ = {
isa = PBXGroup;
children = (
);
path = ViewModels;
sourceTree = "<group>";
};
8F1040C31F25CA0200B4C16E /* Views */ = {
isa = PBXGroup;
children = (
);
path = Views;
sourceTree = "<group>";
};
8F973BDB1F21F6DD003D3ADB = { 8F973BDB1F21F6DD003D3ADB = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -125,6 +176,8 @@ ...@@ -125,6 +176,8 @@
8F973C2D1F21FDDC003D3ADB /* ConfigurationPlist */, 8F973C2D1F21FDDC003D3ADB /* ConfigurationPlist */,
8F1040751F22003900B4C16E /* AppDelegate */, 8F1040751F22003900B4C16E /* AppDelegate */,
8F973C301F21FE32003D3ADB /* main.m */, 8F973C301F21FE32003D3ADB /* main.m */,
8F1040C91F25CB7A00B4C16E /* Global.h */,
8F1040C81F25CA8500B4C16E /* PrefixHeader.pch */,
8F973C021F21FB67003D3ADB /* Assets.xcassets */, 8F973C021F21FB67003D3ADB /* Assets.xcassets */,
); );
path = "Supporting Files"; path = "Supporting Files";
...@@ -151,6 +204,7 @@ ...@@ -151,6 +204,7 @@
8F973C081F21FB77003D3ADB /* Business */ = { 8F973C081F21FB77003D3ADB /* Business */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
8F1040BF1F25CA0200B4C16E /* Main */,
); );
path = Business; path = Business;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -256,6 +310,8 @@ ...@@ -256,6 +310,8 @@
8F973C171F21FB77003D3ADB /* ViewControllers */ = { 8F973C171F21FB77003D3ADB /* ViewControllers */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
8F1040B61F25C8A000B4C16E /* MineTableViewController.h */,
8F1040B71F25C8A000B4C16E /* MineTableViewController.m */,
); );
path = ViewControllers; path = ViewControllers;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -499,8 +555,10 @@ ...@@ -499,8 +555,10 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
8F1040B81F25C8A000B4C16E /* MineTableViewController.m in Sources */,
8F973C311F21FE32003D3ADB /* AppDelegate.m in Sources */, 8F973C311F21FE32003D3ADB /* AppDelegate.m in Sources */,
8F973C331F21FE32003D3ADB /* main.m in Sources */, 8F973C331F21FE32003D3ADB /* main.m in Sources */,
8F1040C61F25CA1800B4C16E /* BusinessCollectionViewController.m in Sources */,
8F973C1A1F21FB77003D3ADB /* ViewController.m in Sources */, 8F973C1A1F21FB77003D3ADB /* ViewController.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
...@@ -509,8 +567,10 @@ ...@@ -509,8 +567,10 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
8F1040B91F25C8A000B4C16E /* MineTableViewController.m in Sources */,
8F973C321F21FE32003D3ADB /* AppDelegate.m in Sources */, 8F973C321F21FE32003D3ADB /* AppDelegate.m in Sources */,
8F973C341F21FE32003D3ADB /* main.m in Sources */, 8F973C341F21FE32003D3ADB /* main.m in Sources */,
8F1040C71F25CA1800B4C16E /* BusinessCollectionViewController.m in Sources */,
8F973C1F1F21FD54003D3ADB /* ViewController.m in Sources */, 8F973C1F1F21FD54003D3ADB /* ViewController.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
...@@ -633,6 +693,7 @@ ...@@ -633,6 +693,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = W54V2VB863;
GCC_PREFIX_HEADER = "$(SRCROOT)/HDMall/Supporting Files/PrefixHeader.pch";
INFOPLIST_FILE = "$(SRCROOT)/HDMall/HDMall.plist"; INFOPLIST_FILE = "$(SRCROOT)/HDMall/HDMall.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomoretech.HDMall; PRODUCT_BUNDLE_IDENTIFIER = com.gomoretech.HDMall;
...@@ -646,6 +707,7 @@ ...@@ -646,6 +707,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = W54V2VB863;
GCC_PREFIX_HEADER = "$(SRCROOT)/HDMall/Supporting Files/PrefixHeader.pch";
INFOPLIST_FILE = "$(SRCROOT)/HDMall/HDMall.plist"; INFOPLIST_FILE = "$(SRCROOT)/HDMall/HDMall.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomoretech.HDMall; PRODUCT_BUNDLE_IDENTIFIER = com.gomoretech.HDMall;
...@@ -659,6 +721,7 @@ ...@@ -659,6 +721,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-test"; ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-test";
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = W54V2VB863;
GCC_PREFIX_HEADER = "$(SRCROOT)/HDMall/Supporting Files/PrefixHeader.pch";
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
HDMall_TEST, HDMall_TEST,
"$(inherited)", "$(inherited)",
...@@ -676,6 +739,7 @@ ...@@ -676,6 +739,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-test"; ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-test";
DEVELOPMENT_TEAM = W54V2VB863; DEVELOPMENT_TEAM = W54V2VB863;
GCC_PREFIX_HEADER = "$(SRCROOT)/HDMall/Supporting Files/PrefixHeader.pch";
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
HDMall_TEST, HDMall_TEST,
"$(inherited)", "$(inherited)",
......
This diff is collapsed.
//
// BusinessCollectionViewController.h
// RealEstateManagement
//
// Created by Z on 16/7/29.
// Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BusinessCollectionViewController : UICollectionViewController
@end
//
// BusinessCollectionViewController.m
// RealEstateManagement
//
// Created by Z on 16/7/29.
// Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//
#import "BusinessCollectionViewController.h"
@interface BusinessCollectionViewController ()
@property (weak, nonatomic) IBOutlet UICollectionViewFlowLayout *layout;
@property (nonatomic, strong) NSMutableArray *arrFunction;
@end
@implementation BusinessCollectionViewController
static NSString *const reuseIdentifier = @"Cell";
- (void)viewDidLoad
{
[super viewDidLoad];
self.layout.itemSize = CGSizeMake((kWidth - 5 * 10) / 4, (kWidth - 5 * 10) / 4 + 25);
self.layout.minimumLineSpacing = 10;
self.layout.minimumInteritemSpacing = 10;
self.layout.headerReferenceSize = CGSizeMake(kWidth, 40);
self.collectionView.contentInset = UIEdgeInsetsMake(0, 0, 49, 0);
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark <UICollectionViewDelegate>
/*
// Uncomment this method to specify if the specified item should be highlighted during tracking
- (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath {
return YES;
}
*/
/*
// Uncomment this method to specify if the specified item should be selected
- (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath {
return YES;
}
*/
/*
// Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath {
return NO;
}
- (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
return NO;
}
- (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
}
*/
@end
//
// MineTableViewController.h
// RealEstateManagement
//
// Created by Z on 16/6/24.
// Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MineTableViewController : UITableViewController
@end
//
// MineTableViewController.m
// RealEstateManagement
//
// Created by Z on 16/6/24.
// Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//
#import "MineTableViewController.h"
@interface MineTableViewController () <UITableViewDataSource, UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *imgViewTopIcon;
@property (weak, nonatomic) IBOutlet UILabel *userName;
@property (weak, nonatomic) IBOutlet UILabel *userCode;
@property (weak, nonatomic) IBOutlet UILabel *tenant;
@end
@implementation MineTableViewController
- (void)viewDidLoad {
[super viewDidLoad];
// self.imgViewTopIcon.image = APP_ICON;
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
// self.navigationController.navigationBar.barTintColor = kMainBlueColor;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
// if (indexPath.row == 2) {
// [[HTTPCilent shareCilent] checkUpdateOnVC:self completeIsLatest:^{
// [MBProgressHUD j_textOnly:@"当前已经是最新版本"];
// }];
// }
}
- (IBAction)loginOut:(id)sender {
// [[UserInfo shareInstance] loginOut];
// [self.navigationController dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#@"reuseIdentifier"#> forIndexPath:indexPath];
// Configure the cell...
return cell;
}
*/
/*
// Override to support conditional editing of the table view.
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the specified item to be editable.
return YES;
}
*/
/*
// Override to support editing the table view.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Delete the row from the data source
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
} else if (editingStyle == UITableViewCellEditingStyleInsert) {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
}
*/
/*
// Override to support conditional rearranging of the table view.
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
// Return NO if you do not want the item to be re-orderable.
return YES;
}
*/
/*
#pragma mark - Navigation
// 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.
}
*/
@end
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "business.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "business@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "business_checked.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "business_checked@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "home.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "home@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "home_checked.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "home_checked@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "tabbar_report_checked_blue.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "tabbar_report_checked_blue@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "tabbar_report_uncheck.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "tabbar_report_uncheck@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "user.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "user@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "user_checked.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "user_checked@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
//
// Global.h
// RealEstateManagement
//
// Created by Javen on 2017/2/23.
// Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//
#ifndef Global_h
#define Global_h
#define kWindow [UIApplication sharedApplication].keyWindow
#define kBounds [UIScreen mainScreen].bounds
#define kWidth [UIScreen mainScreen].bounds.size.width
#define kHeight [UIScreen mainScreen].bounds.size.height
#define kAutoValue(value) (float) value / 375 * kWidth
#define WS(weakSelf) __weak __typeof(&*self) weakSelf = self
#define kPlaceHolderImage [UIImage imageNamed:@"PlaceHolder_image"]
#define IBT_IOS7_OR_LATER ([[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending)
// 判断是否请求成功
#define kIsResponse [responseObject[@"message"] isEqualToString:@"ok"] && responseObject != nil
#define IsNotNullObject(Object) ![(Object) isKindOfClass:[NSNull class]]
#define SAFE_STRING(string) [string isKindOfClass:[NSString class]] && string.length > 0 ? string : @""
#define kNotNullContent(string) [string isKindOfClass:[NSString class]] && string.length > 0 ? string : @"暂无"
#define kDecimalString(string) [NSString stringWithFormat:@"%.2f", string]
//收起键盘
#define HIDE_KEYBOARD [[UIApplication sharedApplication].keyWindow endEditing:YES]
#ifdef DEBUG
#define CLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format), ##__VA_ARGS__] UTF8String])
#else
#define CLog(format, ...)
#endif
#define ZJLazy(arr) \
-(NSMutableArray *) arr { \
if (!_##arr) { \
_##arr = [NSMutableArray array]; \
} \
return _##arr; \
}
#define ZJNSNumberString(string) string.length > 0 ? [NSDecimalNumber decimalNumberWithString:string] : nil;
#endif /* Global_h */
//
// PrefixHeader.pch
// HDMall
//
// Created by Javen on 2017/7/24.
// Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//
#ifndef PrefixHeader_pch
#define PrefixHeader_pch
#import "Global.h"
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#endif /* PrefixHeader_pch */
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