Commit 8f09a06a authored by Sandy's avatar Sandy

首页界面搭建

parent 8fa6ea90
This diff is collapsed.
{
"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
This diff is collapsed.
//
// 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 @@
//
#import "HomeViewController.h"
#import "HomeTopView.h"
#import "HomeCollectionViewController.h"
@interface HomeViewController ()
@end
......@@ -16,12 +17,40 @@
- (void)viewDidLoad {
[super viewDidLoad];
[self setUpView];
// Do any additional setup after loading the view.
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[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 {
[super didReceiveMemoryWarning];
// 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 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
......
......@@ -13,8 +13,8 @@
#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 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_VIEW_BG_COLOR [UIColor whiteColor]
......
......@@ -10,5 +10,7 @@
#define IMPHeader_h
#import "IBTConstants.h"
#import "MyTools.h"
#import "UIView+SDAutoLayout.h"
#import "UIView+Category.h"
#import "UIImageView+WebCache.h"
#endif /* IMPHeader_h */
......@@ -5,3 +5,4 @@ pod 'SDWebImage', '~> 3.7.5'
pod 'FMDB', '~> 2.6'
pod 'SSKeychain', '~> 1.3.1'
pod 'IQKeyboardManager', '~> 4.0.0'
pod 'SDCycleScrollView', '~> 1.61'
......@@ -5,6 +5,8 @@ PODS:
- IQKeyboardManager (4.0.0)
- MBProgressHUD (0.9.2)
- SDAutoLayout (1.31)
- SDCycleScrollView (1.61):
- SDWebImage (~> 3.7)
- SDWebImage (3.7.5):
- SDWebImage/Core (= 3.7.5)
- SDWebImage/Core (3.7.5)
......@@ -15,6 +17,7 @@ DEPENDENCIES:
- IQKeyboardManager (~> 4.0.0)
- MBProgressHUD (~> 0.9.2)
- SDAutoLayout (~> 1.31)
- SDCycleScrollView (~> 1.61)
- SDWebImage (~> 3.7.5)
- SSKeychain (~> 1.3.1)
......@@ -23,6 +26,7 @@ SPEC CHECKSUMS:
IQKeyboardManager: b91928f7927ba55a5829b4dcf4b7a6736ac9fc22
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
SDAutoLayout: 79b8977f863ba4722bb8f8f6f92981d0b8ae932a
SDCycleScrollView: a002d85b30cfa9d0ac74069cd3973ca19ff4f22f
SDWebImage: 69c6303e3348fba97e03f65d65d4fbc26740f461
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