Initial commit

This commit is contained in:
ifish
2017-08-15 16:59:01 +08:00
commit bdc83e07ef
5766 changed files with 423223 additions and 0 deletions
@@ -0,0 +1,19 @@
//
// UMComTableViewCell.h
// UMCommunity
//
// Created by umeng on 15-3-31.
// Copyright (c) 2015年 Umeng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UMComTableViewCell : UITableViewCell
@property (nonatomic, assign) CGFloat customLeftEdge;
@property (nonatomic, assign) CGFloat customSpace;
@property (nonatomic, strong) UIColor *customSpaceColor;
@end
@@ -0,0 +1,60 @@
//
// UMComTableViewCell.m
// UMCommunity
//
// Created by umeng on 15-3-31.
// Copyright (c) 2015年 Umeng. All rights reserved.
//
#import "UMComTableViewCell.h"
#import "UMComResouceDefines.h"
#import <UMComFoundation/UMComKit+Color.h>
@implementation UMComTableViewCell
- (void)awakeFromNib {
// Initialization code
self.selectionStyle = UITableViewCellSelectionStyleNone;
self.customLeftEdge = 0;
self.customSpace = 1;
self.customSpaceColor = UMComTableViewSeparatorColor;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
self.customLeftEdge = 0;
self.customSpace = 1;
self.customSpaceColor = UMComTableViewSeparatorColor;
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
- (void)drawRect:(CGRect)rect
{
UIColor *color = self.customSpaceColor;
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, color.CGColor);
CGRect line = CGRectMake(self.customLeftEdge, rect.size.height - self.customSpace, rect.size.width-self.customLeftEdge, self.customSpace);
CGContextFillRect(context, line);
}
//- (void)drawRect:(CGRect)rect
//{
// UIColor *color = self.customSpaceColor;
// CGContextRef context = UIGraphicsGetCurrentContext();
//
// CGContextSetFillColorWithColor(context, color.CGColor);
// CGContextFillRect(context, rect);
//
// CGContextSetStrokeColorWithColor(context, color.CGColor);
// CGContextStrokeRect(context, CGRectMake(self.customLeftEdge, rect.size.height - self.customSpace, rect.size.width-self.customLeftEdge, self.customSpace));
//}
@end
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="UMComTableViewCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="43"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
<point key="canvasLocation" x="139" y="154"/>
</tableViewCell>
</objects>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>