-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73f7eba
commit 6fc7a7d
Showing
37 changed files
with
2,614 additions
and
62 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+12.2 KB
(100%)
...odeproj/project.xcworkspace/xcuserdata/johnson.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// chargeCell.h | ||
// zxics | ||
// | ||
// Created by johnson on 15-3-13. | ||
// Copyright (c) 2015年 moko. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface chargeCell : UICollectionViewCell | ||
|
||
@property (weak, nonatomic) IBOutlet UILabel *typeLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *timetypeLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *stimeLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *etimeLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *countLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *inLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *detailLable; | ||
@property (weak, nonatomic) IBOutlet UILabel *titleLable; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// chargeCell.m | ||
// zxics | ||
// | ||
// Created by johnson on 15-3-13. | ||
// Copyright (c) 2015年 moko. All rights reserved. | ||
// | ||
|
||
#import "chargeCell.h" | ||
|
||
@implementation chargeCell | ||
|
||
- (id)initWithFrame:(CGRect)frame | ||
{ | ||
self = [super initWithFrame:frame]; | ||
if (self) | ||
{ | ||
// 初始化时加载collectionCell.xib文件 | ||
NSArray *arrayOfViews = [[NSBundle mainBundle] loadNibNamed:@"chargeCell" owner:self options:nil]; | ||
|
||
// 如果路径不存在,return nil | ||
if (arrayOfViews.count < 1) | ||
{ | ||
return nil; | ||
} | ||
// 如果xib中view不属于UICollectionViewCell类,return nil | ||
if (![[arrayOfViews objectAtIndex:0] isKindOfClass:[UICollectionViewCell class]]) | ||
{ | ||
return nil; | ||
} | ||
// 加载nib | ||
self = [arrayOfViews objectAtIndex:0]; | ||
} | ||
return self; | ||
} | ||
|
||
/* | ||
// Only override drawRect: if you perform custom drawing. | ||
// An empty implementation adversely affects performance during animation. | ||
- (void)drawRect:(CGRect)rect | ||
{ | ||
// Drawing code | ||
} | ||
*/ | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="5056" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3733"/> | ||
</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="WbO-X3-5Oy" customClass="chargeCell"> | ||
<rect key="frame" x="0.0" y="0.0" width="320" height="524"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center"> | ||
<rect key="frame" x="0.0" y="0.0" width="320" height="524"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" id="ack-MA-yeD"> | ||
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<color key="backgroundColor" red="0.25892669299999999" green="0.85217814250000001" blue="1" alpha="1" colorSpace="calibratedRGB"/> | ||
</imageView> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Zo9-ze-cJC"> | ||
<rect key="frame" x="10" y="12" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="bzy-hM-724"> | ||
<rect key="frame" x="10" y="51" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="FrR-F8-Cbb"> | ||
<rect key="frame" x="10" y="80" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="HuD-Of-LLA"> | ||
<rect key="frame" x="10" y="109" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="kve-p5-LM5"> | ||
<rect key="frame" x="10" y="138" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="MJC-xc-ukg"> | ||
<rect key="frame" x="10" y="167" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="3qG-yU-wbH"> | ||
<rect key="frame" x="10" y="196" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="sAl-X1-fH4"> | ||
<rect key="frame" x="10" y="225" width="300" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
</subviews> | ||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/> | ||
</view> | ||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> | ||
<connections> | ||
<outlet property="countLable" destination="MJC-xc-ukg" id="4O9-Wg-56L"/> | ||
<outlet property="detailLable" destination="sAl-X1-fH4" id="qeS-lB-lop"/> | ||
<outlet property="etimeLable" destination="kve-p5-LM5" id="tp7-bG-kQ8"/> | ||
<outlet property="inLable" destination="3qG-yU-wbH" id="S2M-np-b8f"/> | ||
<outlet property="stimeLable" destination="HuD-Of-LLA" id="dbq-5n-BPD"/> | ||
<outlet property="timetypeLable" destination="FrR-F8-Cbb" id="FLg-2c-ZHG"/> | ||
<outlet property="titleLable" destination="Zo9-ze-cJC" id="QdW-kZ-eZS"/> | ||
<outlet property="typeLable" destination="bzy-hM-724" id="bku-8K-s20"/> | ||
</connections> | ||
</collectionViewCell> | ||
</objects> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
zxics/zxics/extend/MTCardLayout/DraggableCollectionView/Helpers/LSCollectionViewHelper.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Copyright (c) 2013 Luke Scott | ||
// https://github.com/lukescott/DraggableCollectionView | ||
// Distributed under MIT license | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface LSCollectionViewHelper : NSObject <UIGestureRecognizerDelegate> | ||
|
||
- (id)initWithCollectionView:(UICollectionView *)collectionView; | ||
- (void)unbindFromCollectionView:(UICollectionView *)collectionView; | ||
|
||
@property (nonatomic, readonly, weak) UICollectionView *collectionView; | ||
@property (nonatomic, readonly) UIGestureRecognizer *longPressGestureRecognizer; | ||
@property (nonatomic, readonly) UIGestureRecognizer *panPressGestureRecognizer; | ||
@property (nonatomic, assign) UIEdgeInsets scrollingEdgeInsets; | ||
@property (nonatomic, assign) CGFloat scrollingSpeed; | ||
@property (nonatomic, assign) BOOL enabled; | ||
@property (nonatomic, readonly) NSIndexPath *indexPathForMovingItem; | ||
@property (nonatomic, strong) UIImageView *dropOnToDeleteView; | ||
@end |
Oops, something went wrong.