Commit 8f09a06a authored by Sandy's avatar Sandy

首页界面搭建

parent 8fa6ea90
...@@ -9,6 +9,14 @@ ...@@ -9,6 +9,14 @@
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
1929F16D1C9FCB62000E9B26 /* NSDictionary+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */; }; 1929F16D1C9FCB62000E9B26 /* NSDictionary+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */; };
1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */; }; 1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */; };
1929F17C1CA0DD77000E9B26 /* HomeTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F17B1CA0DD77000E9B26 /* HomeTopView.m */; };
1929F17E1CA0DE32000E9B26 /* HomeTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1929F17D1CA0DE32000E9B26 /* HomeTopView.xib */; };
1929F1811CA0E597000E9B26 /* UIView+Category.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F1801CA0E597000E9B26 /* UIView+Category.m */; };
1929F1841CA0EA64000E9B26 /* MoneyView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F1831CA0EA64000E9B26 /* MoneyView.m */; };
1929F1861CA0EA74000E9B26 /* MoneyView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1929F1851CA0EA74000E9B26 /* MoneyView.xib */; };
1929F18E1CA10C94000E9B26 /* HomeCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F18D1CA10C94000E9B26 /* HomeCollectionViewController.m */; };
1929F1921CA11472000E9B26 /* HomeCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1929F1901CA11472000E9B26 /* HomeCollectionViewCell.m */; };
1929F1931CA11472000E9B26 /* HomeCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1929F1911CA11472000E9B26 /* HomeCollectionViewCell.xib */; };
1940D2EC1C9A56730080678C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D2EB1C9A56730080678C /* main.m */; }; 1940D2EC1C9A56730080678C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D2EB1C9A56730080678C /* main.m */; };
1940D2F41C9A56730080678C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1940D2F21C9A56730080678C /* LaunchScreen.storyboard */; }; 1940D2F41C9A56730080678C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1940D2F21C9A56730080678C /* LaunchScreen.storyboard */; };
1940D2FF1C9A56730080678C /* ALandTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D2FE1C9A56730080678C /* ALandTests.m */; }; 1940D2FF1C9A56730080678C /* ALandTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1940D2FE1C9A56730080678C /* ALandTests.m */; };
...@@ -128,6 +136,19 @@ ...@@ -128,6 +136,19 @@
1929F16B1C9FCB62000E9B26 /* NSDictionary+Category.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Category.h"; sourceTree = "<group>"; }; 1929F16B1C9FCB62000E9B26 /* NSDictionary+Category.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+Category.h"; sourceTree = "<group>"; };
1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Category.m"; sourceTree = "<group>"; }; 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+Category.m"; sourceTree = "<group>"; };
1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 1929F16E1C9FCFA6000E9B26 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
1929F17A1CA0DD77000E9B26 /* HomeTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeTopView.h; sourceTree = "<group>"; };
1929F17B1CA0DD77000E9B26 /* HomeTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeTopView.m; sourceTree = "<group>"; };
1929F17D1CA0DE32000E9B26 /* HomeTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HomeTopView.xib; sourceTree = "<group>"; };
1929F17F1CA0E597000E9B26 /* UIView+Category.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Category.h"; sourceTree = "<group>"; };
1929F1801CA0E597000E9B26 /* UIView+Category.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Category.m"; sourceTree = "<group>"; };
1929F1821CA0EA64000E9B26 /* MoneyView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MoneyView.h; sourceTree = "<group>"; };
1929F1831CA0EA64000E9B26 /* MoneyView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MoneyView.m; sourceTree = "<group>"; };
1929F1851CA0EA74000E9B26 /* MoneyView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MoneyView.xib; sourceTree = "<group>"; };
1929F18C1CA10C94000E9B26 /* HomeCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeCollectionViewController.h; sourceTree = "<group>"; };
1929F18D1CA10C94000E9B26 /* HomeCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeCollectionViewController.m; sourceTree = "<group>"; };
1929F18F1CA11472000E9B26 /* HomeCollectionViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeCollectionViewCell.h; sourceTree = "<group>"; };
1929F1901CA11472000E9B26 /* HomeCollectionViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeCollectionViewCell.m; sourceTree = "<group>"; };
1929F1911CA11472000E9B26 /* HomeCollectionViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HomeCollectionViewCell.xib; sourceTree = "<group>"; };
1940D2E71C9A56730080678C /* ALand.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ALand.app; sourceTree = BUILT_PRODUCTS_DIR; }; 1940D2E71C9A56730080678C /* ALand.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ALand.app; sourceTree = BUILT_PRODUCTS_DIR; };
1940D2EB1C9A56730080678C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 1940D2EB1C9A56730080678C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
1940D2F31C9A56730080678C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; 1940D2F31C9A56730080678C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
...@@ -623,6 +644,15 @@ ...@@ -623,6 +644,15 @@
19DCCA871C9A95E70072C3BF /* View */ = { 19DCCA871C9A95E70072C3BF /* View */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
1929F17A1CA0DD77000E9B26 /* HomeTopView.h */,
1929F17B1CA0DD77000E9B26 /* HomeTopView.m */,
1929F17D1CA0DE32000E9B26 /* HomeTopView.xib */,
1929F1821CA0EA64000E9B26 /* MoneyView.h */,
1929F1831CA0EA64000E9B26 /* MoneyView.m */,
1929F1851CA0EA74000E9B26 /* MoneyView.xib */,
1929F18F1CA11472000E9B26 /* HomeCollectionViewCell.h */,
1929F1901CA11472000E9B26 /* HomeCollectionViewCell.m */,
1929F1911CA11472000E9B26 /* HomeCollectionViewCell.xib */,
); );
path = View; path = View;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -632,6 +662,8 @@ ...@@ -632,6 +662,8 @@
children = ( children = (
199BC79F1C9AA7DF00E4E0B8 /* HomeViewController.h */, 199BC79F1C9AA7DF00E4E0B8 /* HomeViewController.h */,
199BC7A01C9AA7DF00E4E0B8 /* HomeViewController.m */, 199BC7A01C9AA7DF00E4E0B8 /* HomeViewController.m */,
1929F18C1CA10C94000E9B26 /* HomeCollectionViewController.h */,
1929F18D1CA10C94000E9B26 /* HomeCollectionViewController.m */,
); );
path = ViewController; path = ViewController;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -858,6 +890,8 @@ ...@@ -858,6 +890,8 @@
19DCCBA51C9AA0450072C3BF /* UIViewController+LogicController.m */, 19DCCBA51C9AA0450072C3BF /* UIViewController+LogicController.m */,
1929F16B1C9FCB62000E9B26 /* NSDictionary+Category.h */, 1929F16B1C9FCB62000E9B26 /* NSDictionary+Category.h */,
1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */, 1929F16C1C9FCB62000E9B26 /* NSDictionary+Category.m */,
1929F17F1CA0E597000E9B26 /* UIView+Category.h */,
1929F1801CA0E597000E9B26 /* UIView+Category.m */,
); );
path = Categories; path = Categories;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1056,12 +1090,15 @@ ...@@ -1056,12 +1090,15 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
199BC7CD1C9BA5BA00E4E0B8 /* NextResetPasswordViewController.xib in Resources */, 199BC7CD1C9BA5BA00E4E0B8 /* NextResetPasswordViewController.xib in Resources */,
1929F1861CA0EA74000E9B26 /* MoneyView.xib in Resources */,
199BC7B81C9ADD5500E4E0B8 /* ToLoginViewController.xib in Resources */, 199BC7B81C9ADD5500E4E0B8 /* ToLoginViewController.xib in Resources */,
1940D2F41C9A56730080678C /* LaunchScreen.storyboard in Resources */, 1940D2F41C9A56730080678C /* LaunchScreen.storyboard in Resources */,
199BC7BF1C9B045B00E4E0B8 /* RigistViewController.xib in Resources */, 199BC7BF1C9B045B00E4E0B8 /* RigistViewController.xib in Resources */,
199BC7B21C9AD4FD00E4E0B8 /* LoginViewController.xib in Resources */, 199BC7B21C9AD4FD00E4E0B8 /* LoginViewController.xib in Resources */,
199BC7C81C9BA2A300E4E0B8 /* ResetPasswordViewController.xib in Resources */, 199BC7C81C9BA2A300E4E0B8 /* ResetPasswordViewController.xib in Resources */,
1929F1931CA11472000E9B26 /* HomeCollectionViewCell.xib in Resources */,
1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */, 1929F16F1C9FCFA6000E9B26 /* Assets.xcassets in Resources */,
1929F17E1CA0DE32000E9B26 /* HomeTopView.xib in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -1141,6 +1178,7 @@ ...@@ -1141,6 +1178,7 @@
199BC7B11C9AD4FD00E4E0B8 /* LoginViewController.m in Sources */, 199BC7B11C9AD4FD00E4E0B8 /* LoginViewController.m in Sources */,
19DCCBE21C9AA0450072C3BF /* JTOptionsViewController.m in Sources */, 19DCCBE21C9AA0450072C3BF /* JTOptionsViewController.m in Sources */,
1940D31D1C9A57640080678C /* AppDelegate.m in Sources */, 1940D31D1C9A57640080678C /* AppDelegate.m in Sources */,
1929F17C1CA0DD77000E9B26 /* HomeTopView.m in Sources */,
19DCCBD21C9AA0450072C3BF /* UIResponder+FirstResponder.m in Sources */, 19DCCBD21C9AA0450072C3BF /* UIResponder+FirstResponder.m in Sources */,
19DCCB5A1C9A9EB30072C3BF /* IBTAudioRecorder.m in Sources */, 19DCCB5A1C9A9EB30072C3BF /* IBTAudioRecorder.m in Sources */,
19DCCBD11C9AA0450072C3BF /* UILabel+SizeCalculate.m in Sources */, 19DCCBD11C9AA0450072C3BF /* UILabel+SizeCalculate.m in Sources */,
...@@ -1158,9 +1196,11 @@ ...@@ -1158,9 +1196,11 @@
19DCCBD91C9AA0450072C3BF /* IBTTextFieldCell.m in Sources */, 19DCCBD91C9AA0450072C3BF /* IBTTextFieldCell.m in Sources */,
19DCCB741C9A9EB30072C3BF /* IBTUISearchBar.m in Sources */, 19DCCB741C9A9EB30072C3BF /* IBTUISearchBar.m in Sources */,
19DCCBDB1C9AA0450072C3BF /* GXFButtonAndLineView.m in Sources */, 19DCCBDB1C9AA0450072C3BF /* GXFButtonAndLineView.m in Sources */,
1929F1841CA0EA64000E9B26 /* MoneyView.m in Sources */,
19DCCBC81C9AA0450072C3BF /* NSMutableArray+SafeInsert.m in Sources */, 19DCCBC81C9AA0450072C3BF /* NSMutableArray+SafeInsert.m in Sources */,
19DCCBFA1C9AA2180072C3BF /* UIActionSheet+Blocks.m in Sources */, 19DCCBFA1C9AA2180072C3BF /* UIActionSheet+Blocks.m in Sources */,
19DCCBCA1C9AA0450072C3BF /* NSString+TrimmingAdditions.m in Sources */, 19DCCBCA1C9AA0450072C3BF /* NSString+TrimmingAdditions.m in Sources */,
1929F1811CA0E597000E9B26 /* UIView+Category.m in Sources */,
19DCCB631C9A9EB30072C3BF /* IBTTableViewSectionInfo.m in Sources */, 19DCCB631C9A9EB30072C3BF /* IBTTableViewSectionInfo.m in Sources */,
19DCCB5D1C9A9EB30072C3BF /* IBTImagePicker.m in Sources */, 19DCCB5D1C9A9EB30072C3BF /* IBTImagePicker.m in Sources */,
19DCCBCB1C9AA0450072C3BF /* UIApplication+CheckFirstRun.m in Sources */, 19DCCBCB1C9AA0450072C3BF /* UIApplication+CheckFirstRun.m in Sources */,
...@@ -1175,6 +1215,7 @@ ...@@ -1175,6 +1215,7 @@
199BC7C31C9B9B7700E4E0B8 /* UIButton+countDown.m in Sources */, 199BC7C31C9B9B7700E4E0B8 /* UIButton+countDown.m in Sources */,
1940D3281C9A58150080678C /* BaseViewController.m in Sources */, 1940D3281C9A58150080678C /* BaseViewController.m in Sources */,
19DCCBE61C9AA0450072C3BF /* ICRCheckBox.m in Sources */, 19DCCBE61C9AA0450072C3BF /* ICRCheckBox.m in Sources */,
1929F1921CA11472000E9B26 /* HomeCollectionViewCell.m in Sources */,
199BC7CC1C9BA5BA00E4E0B8 /* NextResetPasswordViewController.m in Sources */, 199BC7CC1C9BA5BA00E4E0B8 /* NextResetPasswordViewController.m in Sources */,
19DCCB591C9A9EB30072C3BF /* IBTAudioController.m in Sources */, 19DCCB591C9A9EB30072C3BF /* IBTAudioController.m in Sources */,
199BC7B61C9AD52200E4E0B8 /* ToLoginViewController.m in Sources */, 199BC7B61C9AD52200E4E0B8 /* ToLoginViewController.m in Sources */,
...@@ -1222,6 +1263,7 @@ ...@@ -1222,6 +1263,7 @@
19DCCBFE1C9AA2A90072C3BF /* ICRDataBaseController.m in Sources */, 19DCCBFE1C9AA2A90072C3BF /* ICRDataBaseController.m in Sources */,
19DCCBD41C9AA0450072C3BF /* UITabBarItem+Universal.m in Sources */, 19DCCBD41C9AA0450072C3BF /* UITabBarItem+Universal.m in Sources */,
19DCCBE51C9AA0450072C3BF /* ICRFunctionItemControl.m in Sources */, 19DCCBE51C9AA0450072C3BF /* ICRFunctionItemControl.m in Sources */,
1929F18E1CA10C94000E9B26 /* HomeCollectionViewController.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -1364,10 +1406,21 @@ ...@@ -1364,10 +1406,21 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
GCC_PREFIX_HEADER = Aland/PrefixHeader.pch; GCC_PREFIX_HEADER = Aland/PrefixHeader.pch;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"\"${PODS_ROOT}/Headers/Public\"",
"\"${PODS_ROOT}/Headers/Public/FMDB\"",
"\"${PODS_ROOT}/Headers/Public/IQKeyboardManager\"",
"\"${PODS_ROOT}/Headers/Public/MBProgressHUD\"",
"\"${PODS_ROOT}/Headers/Public/SDAutoLayout\"",
"\"${PODS_ROOT}/Headers/Public/SDWebImage\"",
"\"${PODS_ROOT}/Headers/Public/SSKeychain\"",
);
INFOPLIST_FILE = ALand/Info.plist; INFOPLIST_FILE = ALand/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Javen.ALand; PRODUCT_BUNDLE_IDENTIFIER = Javen.ALand;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
}; };
name = Debug; name = Debug;
}; };
...@@ -1377,10 +1430,21 @@ ...@@ -1377,10 +1430,21 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
GCC_PREFIX_HEADER = Aland/PrefixHeader.pch; GCC_PREFIX_HEADER = Aland/PrefixHeader.pch;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"\"${PODS_ROOT}/Headers/Public\"",
"\"${PODS_ROOT}/Headers/Public/FMDB\"",
"\"${PODS_ROOT}/Headers/Public/IQKeyboardManager\"",
"\"${PODS_ROOT}/Headers/Public/MBProgressHUD\"",
"\"${PODS_ROOT}/Headers/Public/SDAutoLayout\"",
"\"${PODS_ROOT}/Headers/Public/SDWebImage\"",
"\"${PODS_ROOT}/Headers/Public/SSKeychain\"",
);
INFOPLIST_FILE = ALand/Info.plist; INFOPLIST_FILE = ALand/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = Javen.ALand; PRODUCT_BUNDLE_IDENTIFIER = Javen.ALand;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
USER_HEADER_SEARCH_PATHS = "${SRCROOT}/**";
}; };
name = Release; name = Release;
}; };
......
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "addbutton.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "addbutton@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "moneyViewLine.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "moneyViewLine@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "rightIcon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "rightIcon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "cyclescrollplaceholder.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "cyclescrollplaceholder@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "defaultUserIcon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "defaultUserIcon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "imageCover.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "imageCover@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "wallhaven-25411.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "wallhaven-25411@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
//
// HomeCollectionViewCell.h
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HomeCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UILabel *labelCellTitle;
@end
//
// HomeCollectionViewCell.m
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import "HomeCollectionViewCell.h"
@implementation HomeCollectionViewCell
- (void)awakeFromNib {
// Initialization code
}
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="HomeCollectionViewCell">
<rect key="frame" x="0.0" y="0.0" width="162" height="88"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="162" height="88"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="cell描述" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WbW-XT-8QE">
<rect key="frame" x="3" y="34" width="156" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="WbW-XT-8QE" secondAttribute="trailing" id="FfO-6c-pc1"/>
<constraint firstItem="WbW-XT-8QE" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="GtD-Lt-4bT"/>
<constraint firstItem="WbW-XT-8QE" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="f7s-un-iVP"/>
<constraint firstItem="WbW-XT-8QE" firstAttribute="centerY" secondItem="gTV-IL-0wX" secondAttribute="centerY" id="zQY-2i-NVV"/>
</constraints>
<size key="customSize" width="162" height="88"/>
<connections>
<outlet property="labelCellTitle" destination="WbW-XT-8QE" id="EsH-6m-9Dd"/>
</connections>
<point key="canvasLocation" x="430" y="379"/>
</collectionViewCell>
</objects>
</document>
//
// HomeTopView.h
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HomeTopView : UIView
- (void)updateTopViewInfo:(id)userInfo;
@end
//
// HomeTopView.m
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import "HomeTopView.h"
@interface HomeTopView ()
@property (weak, nonatomic) IBOutlet UIImageView *imageBacround;
@property (weak, nonatomic) IBOutlet UIImageView *imageViewUserIcon;
@property (weak, nonatomic) IBOutlet UILabel *labelName;
@property (weak, nonatomic) IBOutlet UILabel *labelSubTitle;
@end
@implementation HomeTopView
- (void)updateTopViewInfo:(id)userInfo {
[self.imageViewUserIcon sd_setImageWithURL:[NSURL URLWithString:@""] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
self.labelName.text = @"";
self.labelSubTitle.text = @"";
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="HomeTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="118"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallhaven-25411" translatesAutoresizingMaskIntoConstraints="NO" id="aQx-fx-9QQ">
<rect key="frame" x="0.0" y="0.0" width="375" height="118"/>
</imageView>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="imageCover" translatesAutoresizingMaskIntoConstraints="NO" id="9Ug-fV-Xv9">
<rect key="frame" x="0.0" y="0.0" width="375" height="118"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="店铺名:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2oQ-Yt-HNr">
<rect key="frame" x="96" y="39" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="乔家小院" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tFZ-ia-Y0w">
<rect key="frame" x="169" y="39" width="72" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="店铺简介简介简介简介" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qVI-A9-Pct">
<rect key="frame" x="96" y="73" width="160" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="defaultUserIcon" translatesAutoresizingMaskIntoConstraints="NO" id="G8W-Xp-4yu">
<rect key="frame" x="18" y="34" width="70" height="70"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="pE8-uA-V23"/>
<constraint firstAttribute="height" constant="70" id="qp1-bf-4GL"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="35"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="aQx-fx-9QQ" secondAttribute="bottom" id="595-ML-DCZ"/>
<constraint firstAttribute="bottom" secondItem="qVI-A9-Pct" secondAttribute="bottom" constant="25" id="6V9-9i-m24"/>
<constraint firstItem="tFZ-ia-Y0w" firstAttribute="centerY" secondItem="2oQ-Yt-HNr" secondAttribute="centerY" id="ABv-db-gTJ"/>
<constraint firstAttribute="bottom" secondItem="2oQ-Yt-HNr" secondAttribute="bottom" constant="57" id="Bfa-jj-fNL"/>
<constraint firstItem="2oQ-Yt-HNr" firstAttribute="leading" secondItem="G8W-Xp-4yu" secondAttribute="trailing" constant="8" id="L9w-BC-0b4"/>
<constraint firstAttribute="bottom" secondItem="9Ug-fV-Xv9" secondAttribute="bottom" id="Lac-hb-NcH"/>
<constraint firstAttribute="trailing" secondItem="aQx-fx-9QQ" secondAttribute="trailing" id="NiB-YR-L39"/>
<constraint firstItem="qVI-A9-Pct" firstAttribute="leading" secondItem="2oQ-Yt-HNr" secondAttribute="leading" id="ZSk-0J-Hd8"/>
<constraint firstItem="tFZ-ia-Y0w" firstAttribute="leading" secondItem="2oQ-Yt-HNr" secondAttribute="trailing" constant="1" id="feq-ze-l06"/>
<constraint firstItem="aQx-fx-9QQ" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="kyj-nc-71x"/>
<constraint firstAttribute="trailing" secondItem="9Ug-fV-Xv9" secondAttribute="trailing" id="liA-GB-ksv"/>
<constraint firstItem="aQx-fx-9QQ" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="qKq-Ky-0zW"/>
<constraint firstItem="G8W-Xp-4yu" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="18" id="rZd-sE-PUq"/>
<constraint firstAttribute="bottom" secondItem="G8W-Xp-4yu" secondAttribute="bottom" constant="14" id="uYc-8f-4b2"/>
<constraint firstItem="9Ug-fV-Xv9" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="w93-pn-xjX"/>
<constraint firstItem="9Ug-fV-Xv9" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="wU3-RC-D9a"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="imageBacround" destination="aQx-fx-9QQ" id="lnS-mn-slV"/>
<outlet property="imageViewUserIcon" destination="G8W-Xp-4yu" id="zzM-dK-Kaz"/>
<outlet property="labelName" destination="tFZ-ia-Y0w" id="Cwp-PN-Y3a"/>
<outlet property="labelSubTitle" destination="qVI-A9-Pct" id="Ofk-Pv-Bfz"/>
</connections>
<point key="canvasLocation" x="430.5" y="83"/>
</view>
</objects>
<resources>
<image name="defaultUserIcon" width="84" height="84"/>
<image name="imageCover" width="540" height="175"/>
<image name="wallhaven-25411" width="540" height="279"/>
</resources>
</document>
//
// MoneyView.h
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MoneyView : UIView
@end
//
// MoneyView.m
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import "MoneyView.h"
@implementation MoneyView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view autoresizesSubviews="NO" contentMode="scaleToFill" id="iN0-l3-epB" customClass="MoneyView">
<rect key="frame" x="0.0" y="0.0" width="375" height="199"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="moneyViewLine" translatesAutoresizingMaskIntoConstraints="NO" id="sno-XF-7wp">
<rect key="frame" x="0.0" y="107" width="375" height="92"/>
<constraints>
<constraint firstAttribute="height" constant="92" id="dUG-RN-Lz2"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="O8s-DL-Dmx">
<rect key="frame" x="301" y="123" width="17" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oE9-qL-eth">
<rect key="frame" x="58" y="123" width="17" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本月收入" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bWL-2f-gh2">
<rect key="frame" x="10" y="163" width="112" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本月订单数" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hyn-Rr-wOv">
<rect key="frame" x="253" y="163" width="112" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本月销售额" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k8x-ug-WTe">
<rect key="frame" x="132" y="163" width="111" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MWa-IH-asH">
<rect key="frame" x="179" y="123" width="17" height="32"/>
<fontDescription key="fontDescription" type="system" pointSize="26"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="累计收入 (元)" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7rw-kV-aXx">
<rect key="frame" x="17" y="17" width="124" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="00.0" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Lnc-ho-ySs">
<rect key="frame" x="17" y="56" width="70" height="37"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="31"/>
<color key="textColor" red="0.96862745098039216" green="0.36862745098039218" blue="0.36862745098039218" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="rightIcon" translatesAutoresizingMaskIntoConstraints="NO" id="ODe-C6-DGN">
<rect key="frame" x="341" y="0.0" width="13" height="107"/>
<constraints>
<constraint firstAttribute="width" constant="13" id="0Ui-lP-8GE"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="bWL-2f-gh2" secondAttribute="bottom" constant="15" id="0Ch-7Y-vLC"/>
<constraint firstItem="O8s-DL-Dmx" firstAttribute="centerX" secondItem="Hyn-Rr-wOv" secondAttribute="centerX" id="2IG-NW-Rzo"/>
<constraint firstItem="sno-XF-7wp" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="6EB-Az-syc"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="centerY" secondItem="k8x-ug-WTe" secondAttribute="centerY" id="8dk-Z5-0ie"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="10" id="93W-m7-YYO"/>
<constraint firstAttribute="bottom" secondItem="bWL-2f-gh2" secondAttribute="bottom" constant="15" id="9cT-Xa-K2j"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="10" id="9to-RN-ZJR"/>
<constraint firstAttribute="bottom" secondItem="sno-XF-7wp" secondAttribute="bottom" id="B52-oJ-em2"/>
<constraint firstItem="7rw-kV-aXx" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="17" id="E3A-kc-xgq"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="F5M-JN-4q7"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="GZi-lM-Lio"/>
<constraint firstItem="MWa-IH-asH" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="H76-oi-oVn"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="20" id="HPL-Gj-Scb"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="Hw2-B1-y5R"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="width" secondItem="Hyn-Rr-wOv" secondAttribute="width" id="JfK-LQ-fcB"/>
<constraint firstItem="7rw-kV-aXx" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="17" id="Jjf-vP-g1q"/>
<constraint firstItem="sno-XF-7wp" firstAttribute="top" secondItem="ODe-C6-DGN" secondAttribute="bottom" id="Mbm-zF-a7w"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="height" secondItem="k8x-ug-WTe" secondAttribute="height" id="Okk-dl-GDx"/>
<constraint firstAttribute="trailing" secondItem="Hyn-Rr-wOv" secondAttribute="trailing" constant="10" id="T9I-xB-K9a"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="20" id="TI4-Jh-gpi"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="20" id="XX2-JM-X8g"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="20" id="Yjp-06-ZgA"/>
<constraint firstAttribute="bottom" secondItem="MWa-IH-asH" secondAttribute="bottom" constant="44" id="ZrL-JL-K6Y"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="20" id="aep-TD-tkE"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="10" id="b3e-xD-7g8"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="cfd-zc-b5M"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="10" id="dWF-wo-yQK"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" id="dmE-Oa-g5e"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="height" secondItem="Hyn-Rr-wOv" secondAttribute="height" id="e3R-Ie-D0r"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="10" id="e55-pX-zgA"/>
<constraint firstAttribute="trailing" secondItem="sno-XF-7wp" secondAttribute="trailing" id="et4-mm-hKl"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="top" secondItem="MWa-IH-asH" secondAttribute="bottom" constant="8" id="ggd-Gu-kIt"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="top" secondItem="MWa-IH-asH" secondAttribute="bottom" constant="8" id="iSZ-ar-FVT"/>
<constraint firstItem="ODe-C6-DGN" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="jK8-jP-5a9"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="jKm-3i-4Np"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="20" id="jMN-cA-Mfi"/>
<constraint firstAttribute="trailing" secondItem="Hyn-Rr-wOv" secondAttribute="trailing" constant="20" id="kzv-TI-fKn"/>
<constraint firstAttribute="trailing" secondItem="Hyn-Rr-wOv" secondAttribute="trailing" constant="20" id="px6-Z8-sS6"/>
<constraint firstItem="Lnc-ho-ySs" firstAttribute="leading" secondItem="7rw-kV-aXx" secondAttribute="leading" id="qcA-WM-ls1"/>
<constraint firstItem="MWa-IH-asH" firstAttribute="centerY" secondItem="oE9-qL-eth" secondAttribute="centerY" id="r42-MH-11f"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="20" id="rVN-WN-i2P"/>
<constraint firstItem="Lnc-ho-ySs" firstAttribute="top" secondItem="7rw-kV-aXx" secondAttribute="bottom" constant="18" id="sVY-32-rV8"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="width" secondItem="k8x-ug-WTe" secondAttribute="width" id="sd9-2e-2WS"/>
<constraint firstItem="O8s-DL-Dmx" firstAttribute="centerY" secondItem="MWa-IH-asH" secondAttribute="centerY" id="sht-UM-bN5"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="top" secondItem="MWa-IH-asH" secondAttribute="bottom" constant="8" id="thb-HD-UNh"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="centerX" secondItem="oE9-qL-eth" secondAttribute="centerX" id="ttG-zn-0Wc"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="20" id="wbh-O7-qtT"/>
<constraint firstAttribute="trailing" secondItem="ODe-C6-DGN" secondAttribute="trailing" constant="21" id="whw-6t-8In"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="centerY" secondItem="bWL-2f-gh2" secondAttribute="centerY" id="x2L-xk-WPx"/>
<constraint firstItem="bWL-2f-gh2" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" id="xjZ-0E-BeK"/>
<constraint firstItem="Hyn-Rr-wOv" firstAttribute="leading" secondItem="k8x-ug-WTe" secondAttribute="trailing" constant="40" id="y0D-QN-gqU"/>
<constraint firstItem="k8x-ug-WTe" firstAttribute="leading" secondItem="bWL-2f-gh2" secondAttribute="trailing" constant="38" id="zL3-Vj-zwo"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<variation key="default">
<mask key="constraints">
<exclude reference="9cT-Xa-K2j"/>
<exclude reference="dmE-Oa-g5e"/>
<exclude reference="xjZ-0E-BeK"/>
<exclude reference="GZi-lM-Lio"/>
<exclude reference="HPL-Gj-Scb"/>
<exclude reference="XX2-JM-X8g"/>
<exclude reference="aep-TD-tkE"/>
<exclude reference="ggd-Gu-kIt"/>
<exclude reference="iSZ-ar-FVT"/>
<exclude reference="jKm-3i-4Np"/>
<exclude reference="thb-HD-UNh"/>
<exclude reference="wbh-O7-qtT"/>
<exclude reference="zL3-Vj-zwo"/>
<exclude reference="8dk-Z5-0ie"/>
<exclude reference="F5M-JN-4q7"/>
<exclude reference="TI4-Jh-gpi"/>
<exclude reference="Yjp-06-ZgA"/>
<exclude reference="jMN-cA-Mfi"/>
<exclude reference="kzv-TI-fKn"/>
<exclude reference="px6-Z8-sS6"/>
<exclude reference="rVN-WN-i2P"/>
<exclude reference="x2L-xk-WPx"/>
<exclude reference="y0D-QN-gqU"/>
</mask>
</variation>
<point key="canvasLocation" x="530.5" y="160.5"/>
</view>
</objects>
<resources>
<image name="moneyViewLine" width="540" height="121"/>
<image name="rightIcon" width="17" height="30"/>
</resources>
</document>
//
// HomeCollectionViewController.h
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HomeCollectionViewController : UIViewController
@end
//
// HomeCollectionViewController.m
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import "HomeCollectionViewController.h"
#import "MoneyView.h"
#import "HomeCollectionViewCell.h"
#define kHomeCollectionViewID @"HomeCollectionViewID"
#define kCollectionViewHeadHeight 350
#import "SDCycleScrollView.h"
@interface HomeCollectionViewController ()<UICollectionViewDataSource, UICollectionViewDelegate,SDCycleScrollViewDelegate>
@property (nonatomic, strong) NSArray *cellTitle;
@property (nonatomic, strong) UICollectionView *collectionView;
@end
@implementation HomeCollectionViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.automaticallyAdjustsScrollViewInsets = NO;
_cellTitle = @[@"商品管理",@"订单管理",@"分销管理",@"客户管理",@"店铺管理",@"邀请合伙人",@"aland商城"];
//添加collectionview
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
layout.minimumLineSpacing = 1;
layout.minimumInteritemSpacing = 1;
layout.itemSize = CGSizeMake((ScreenSize.width - 3) / 4, (ScreenSize.width - 3) / 4 - 10);
self.collectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(0, 0, 0, 0) collectionViewLayout:layout];
_collectionView.backgroundColor = kBacroundColor;
_collectionView.delegate = self;
_collectionView.dataSource = self;
_collectionView.contentInset = UIEdgeInsetsMake(kCollectionViewHeadHeight, 0, 0, 0);
//注册cell
[_collectionView registerNib:[UINib nibWithNibName:@"HomeCollectionViewCell" bundle:[NSBundle mainBundle]] forCellWithReuseIdentifier:kHomeCollectionViewID];
[self.view addSubview:_collectionView];
_collectionView.sd_layout.topEqualToView(self.view).leftEqualToView(self.view).rightEqualToView(self.view).bottomSpaceToView(self.view, 49);
[_collectionView updateLayout];
//中间的收入
MoneyView *viewMoney = [MoneyView viewWithNibName:@"MoneyView"];
viewMoney.frame = CGRectMake(0, 0 - kCollectionViewHeadHeight, ScreenSize.width, 340);
[self.collectionView addSubview:viewMoney];
//添加商品按钮
UIView *viewAdd = [[UIView alloc] initWithFrame:CGRectMake(0, -51, ScreenSize.width, 50)];
viewAdd.backgroundColor = [UIColor whiteColor];
[self.collectionView addSubview:viewAdd];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[viewAdd addSubview:button];
[button addTarget:self action:@selector(touchAddAction) forControlEvents:UIControlEventTouchUpInside];
button.sd_layout.centerXEqualToView(viewAdd).centerYEqualToView(viewAdd).widthIs(100).heightIs(23);
[button setImage:[UIImage imageNamed:@"addbutton"] forState:UIControlStateNormal];
//轮播图
//轮播网络图片
// SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, 0, 0) delegate:self placeholderImage:[UIImage imageNamed:@"cyclescrollplaceholder"]];
// scrollView.imageURLStringsGroup = @[@"0",@"0"];
//轮播本地图片
SDCycleScrollView *scrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, 0, 0) imageNamesGroup:@[@"cyclescrollplaceholder",@"cyclescrollplaceholder"]];
scrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
scrollView.autoScrollTimeInterval = 3;
[self.collectionView addSubview:scrollView];
scrollView.sd_layout.topSpaceToView(viewMoney,5).widthIs(ScreenSize.width).bottomSpaceToView(viewAdd, 5);
// Do any additional setup after loading the view.
}
- (void)touchAddAction {
CLog(@"添加商品");
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
return self.cellTitle.count;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
HomeCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:kHomeCollectionViewID forIndexPath:indexPath];
//cell.backgroundColor = kRandomColor;
cell.labelCellTitle.text = self.cellTitle[indexPath.row];
return cell;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#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
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
// //
#import "HomeViewController.h" #import "HomeViewController.h"
#import "HomeTopView.h"
#import "HomeCollectionViewController.h"
@interface HomeViewController () @interface HomeViewController ()
@end @end
...@@ -16,12 +17,40 @@ ...@@ -16,12 +17,40 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
[self setUpView];
// Do any additional setup after loading the view. // Do any additional setup after loading the view.
} }
- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES]; [self.navigationController setNavigationBarHidden:YES];
} }
- (void)setUpView {
HomeTopView *viewHomeTop = [HomeTopView viewWithNibName:@"HomeTopView"];
[self.view addSubview:viewHomeTop];
viewHomeTop.sd_layout.topEqualToView(self.view).leftEqualToView(self.view).rightEqualToView(self.view).heightIs(150);
[viewHomeTop updateLayout];
HomeCollectionViewController *homeCollectionView = [[HomeCollectionViewController alloc] init];
[self addChildViewController:homeCollectionView];
[self.view addSubview:homeCollectionView.view];
homeCollectionView.view.sd_layout.topSpaceToView(viewHomeTop, 0).leftEqualToView(self.view).rightEqualToView(self.view).bottomEqualToView(self.view);
[homeCollectionView.view updateLayout];
// [self.view addSubview:self.collectionView];
// _collectionView.backgroundColor = [UIColor colorWithWhite:0.949 alpha:1.000];
// _collectionView.contentSize = CGSizeMake(0, ScreenSize.height - 150);
// _collectionView.sd_layout.topSpaceToView(viewHomeTop,0).leftEqualToView(self.view).rightEqualToView(self.view).bottomEqualToView(self.view);
// [_collectionView updateLayout];
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
......
//
// UIView+Category.h
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Category)
+ (id)viewWithNibName:(NSString *)viewName;
@end
//
// UIView+Category.m
// ALand
//
// Created by Z on 16/3/22.
// Copyright © 2016年 Z. All rights reserved.
//
#import "UIView+Category.h"
@implementation UIView (Category)
+ (id)viewWithNibName:(NSString *)viewName {
NSArray* nibView = [[NSBundle mainBundle] loadNibNamed:viewName owner:nil options:nil];
return [nibView objectAtIndex:0];
}
@end
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array> </array>
<key>UISupportedInterfaceOrientations~ipad</key> <key>UISupportedInterfaceOrientations~ipad</key>
<array> <array>
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
#define kMainTextColor [UIColor colorWithRed:0.486 green:0.765 blue:0.145 alpha:1.000]; #define kMainTextColor [UIColor colorWithRed:0.486 green:0.765 blue:0.145 alpha:1.000];
#define kCustomGrayColor [UIColor colorWithWhite:0.533 alpha:1.000]; #define kCustomGrayColor [UIColor colorWithWhite:0.533 alpha:1.000];
#define kCustomGreenColor [UIColor colorWithRed:0.486 green:0.765 blue:0.145 alpha:1.000]; #define kCustomGreenColor [UIColor colorWithRed:0.486 green:0.765 blue:0.145 alpha:1.000];
#define kRandomColor [UIColor colorWithRed:arc4random()%256/255.0 green:arc4random()%256/255.0 blue:arc4random()%256/255.0 alpha:1.000]
#define kBacroundColor [UIColor colorWithWhite:0.949 alpha:1.000]
#define ICR_TINTCOLOR [UIColor colorWithR:63 g:134 b:244 a:1]//天蓝色 #define ICR_TINTCOLOR [UIColor colorWithR:63 g:134 b:244 a:1]//天蓝色
#define ICR_VIEW_BG_COLOR [UIColor whiteColor] #define ICR_VIEW_BG_COLOR [UIColor whiteColor]
......
...@@ -10,5 +10,7 @@ ...@@ -10,5 +10,7 @@
#define IMPHeader_h #define IMPHeader_h
#import "IBTConstants.h" #import "IBTConstants.h"
#import "MyTools.h" #import "MyTools.h"
#import "UIView+SDAutoLayout.h"
#import "UIView+Category.h"
#import "UIImageView+WebCache.h"
#endif /* IMPHeader_h */ #endif /* IMPHeader_h */
...@@ -5,3 +5,4 @@ pod 'SDWebImage', '~> 3.7.5' ...@@ -5,3 +5,4 @@ pod 'SDWebImage', '~> 3.7.5'
pod 'FMDB', '~> 2.6' pod 'FMDB', '~> 2.6'
pod 'SSKeychain', '~> 1.3.1' pod 'SSKeychain', '~> 1.3.1'
pod 'IQKeyboardManager', '~> 4.0.0' pod 'IQKeyboardManager', '~> 4.0.0'
pod 'SDCycleScrollView', '~> 1.61'
...@@ -5,6 +5,8 @@ PODS: ...@@ -5,6 +5,8 @@ PODS:
- IQKeyboardManager (4.0.0) - IQKeyboardManager (4.0.0)
- MBProgressHUD (0.9.2) - MBProgressHUD (0.9.2)
- SDAutoLayout (1.31) - SDAutoLayout (1.31)
- SDCycleScrollView (1.61):
- SDWebImage (~> 3.7)
- SDWebImage (3.7.5): - SDWebImage (3.7.5):
- SDWebImage/Core (= 3.7.5) - SDWebImage/Core (= 3.7.5)
- SDWebImage/Core (3.7.5) - SDWebImage/Core (3.7.5)
...@@ -15,6 +17,7 @@ DEPENDENCIES: ...@@ -15,6 +17,7 @@ DEPENDENCIES:
- IQKeyboardManager (~> 4.0.0) - IQKeyboardManager (~> 4.0.0)
- MBProgressHUD (~> 0.9.2) - MBProgressHUD (~> 0.9.2)
- SDAutoLayout (~> 1.31) - SDAutoLayout (~> 1.31)
- SDCycleScrollView (~> 1.61)
- SDWebImage (~> 3.7.5) - SDWebImage (~> 3.7.5)
- SSKeychain (~> 1.3.1) - SSKeychain (~> 1.3.1)
...@@ -23,6 +26,7 @@ SPEC CHECKSUMS: ...@@ -23,6 +26,7 @@ SPEC CHECKSUMS:
IQKeyboardManager: b91928f7927ba55a5829b4dcf4b7a6736ac9fc22 IQKeyboardManager: b91928f7927ba55a5829b4dcf4b7a6736ac9fc22
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1 MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
SDAutoLayout: 79b8977f863ba4722bb8f8f6f92981d0b8ae932a SDAutoLayout: 79b8977f863ba4722bb8f8f6f92981d0b8ae932a
SDCycleScrollView: a002d85b30cfa9d0ac74069cd3973ca19ff4f22f
SDWebImage: 69c6303e3348fba97e03f65d65d4fbc26740f461 SDWebImage: 69c6303e3348fba97e03f65d65d4fbc26740f461
SSKeychain: 04c4ec40f4c3deda524e269bc76e5f30e638a174 SSKeychain: 04c4ec40f4c3deda524e269bc76e5f30e638a174
......
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