mirror of
https://github.com/wu736139669/ManagerDemo.git
synced 2026-08-05 05:55:42 +00:00
add list
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
A93F8804199A077F00875287 /* LoanListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A93F87FB199A077F00875287 /* LoanListCell.xib */; };
|
||||
A93F8805199A077F00875287 /* LoanListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93F87FD199A077F00875287 /* LoanListViewController.m */; };
|
||||
A93F8806199A077F00875287 /* OtherListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A93F87FF199A077F00875287 /* OtherListViewController.m */; };
|
||||
A988A8FC199A50D900EB10AA /* TriangleView.m in Sources */ = {isa = PBXBuildFile; fileRef = A988A8FB199A50D900EB10AA /* TriangleView.m */; };
|
||||
A988A900199A751500EB10AA /* FundListCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A988A8FF199A751500EB10AA /* FundListCell.m */; };
|
||||
A988A902199A755300EB10AA /* FundListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A988A901199A755300EB10AA /* FundListCell.xib */; };
|
||||
A9AA325A199702DB000BE4FB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A9AA3259199702DB000BE4FB /* Images.xcassets */; };
|
||||
A9AA326019970335000BE4FB /* HomeAdView.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AA325D19970335000BE4FB /* HomeAdView.m */; };
|
||||
A9AA326119970335000BE4FB /* ImagePlayerView.m in Sources */ = {isa = PBXBuildFile; fileRef = A9AA325F19970335000BE4FB /* ImagePlayerView.m */; };
|
||||
@@ -128,6 +131,11 @@
|
||||
A93F87FD199A077F00875287 /* LoanListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LoanListViewController.m; sourceTree = "<group>"; };
|
||||
A93F87FE199A077F00875287 /* OtherListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OtherListViewController.h; sourceTree = "<group>"; };
|
||||
A93F87FF199A077F00875287 /* OtherListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OtherListViewController.m; sourceTree = "<group>"; };
|
||||
A988A8FA199A50D900EB10AA /* TriangleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TriangleView.h; sourceTree = "<group>"; };
|
||||
A988A8FB199A50D900EB10AA /* TriangleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TriangleView.m; sourceTree = "<group>"; };
|
||||
A988A8FE199A751500EB10AA /* FundListCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FundListCell.h; sourceTree = "<group>"; };
|
||||
A988A8FF199A751500EB10AA /* FundListCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FundListCell.m; sourceTree = "<group>"; };
|
||||
A988A901199A755300EB10AA /* FundListCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FundListCell.xib; sourceTree = "<group>"; };
|
||||
A9AA3259199702DB000BE4FB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
||||
A9AA325C19970335000BE4FB /* HomeAdView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HomeAdView.h; sourceTree = "<group>"; };
|
||||
A9AA325D19970335000BE4FB /* HomeAdView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HomeAdView.m; sourceTree = "<group>"; };
|
||||
@@ -279,6 +287,15 @@
|
||||
path = AttributedString;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A988A8F9199A50B600EB10AA /* UIViewShape */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A988A8FA199A50D900EB10AA /* TriangleView.h */,
|
||||
A988A8FB199A50D900EB10AA /* TriangleView.m */,
|
||||
);
|
||||
path = UIViewShape;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9A660B31999180000E9D166 /* ListView */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -294,6 +311,9 @@
|
||||
A93F87FD199A077F00875287 /* LoanListViewController.m */,
|
||||
A93F87FE199A077F00875287 /* OtherListViewController.h */,
|
||||
A93F87FF199A077F00875287 /* OtherListViewController.m */,
|
||||
A988A8FE199A751500EB10AA /* FundListCell.h */,
|
||||
A988A8FF199A751500EB10AA /* FundListCell.m */,
|
||||
A988A901199A755300EB10AA /* FundListCell.xib */,
|
||||
);
|
||||
path = ListView;
|
||||
sourceTree = "<group>";
|
||||
@@ -416,6 +436,7 @@
|
||||
A9AF6C4A19949B510076C0EE /* Common */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A988A8F9199A50B600EB10AA /* UIViewShape */,
|
||||
A93F87C71999E4DA00875287 /* AttributedString */,
|
||||
A93F877D1999B91600875287 /* SlideSwitch */,
|
||||
A93F87751999AB4400875287 /* MBProgressHUD */,
|
||||
@@ -597,6 +618,7 @@
|
||||
A93F8804199A077F00875287 /* LoanListCell.xib in Resources */,
|
||||
A9AF6C731994B5890076C0EE /* icon_bar_share@2x.png in Resources */,
|
||||
A9EAA04019985EDE001A872A /* HomeMainView.xib in Resources */,
|
||||
A988A902199A755300EB10AA /* FundListCell.xib in Resources */,
|
||||
A9AF6C6919949CD30076C0EE /* icon_dock_session@2x.png in Resources */,
|
||||
A9AF6C5C19949CD30076C0EE /* icon_dock_forum_actived@2x.png in Resources */,
|
||||
A9AF6CA61994D0660076C0EE /* ad4@2x.png in Resources */,
|
||||
@@ -692,12 +714,14 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A93F8801199A077F00875287 /* ListViewController.m in Sources */,
|
||||
A988A8FC199A50D900EB10AA /* TriangleView.m in Sources */,
|
||||
A9EAA05619988C55001A872A /* MRCircularProgressView.m in Sources */,
|
||||
A9AF6C961994C5700076C0EE /* UIView+Extension.m in Sources */,
|
||||
A9AF6C921994C5700076C0EE /* MJRefreshFooterView.m in Sources */,
|
||||
A93F87CA1999E62000875287 /* AdjustableUILable.m in Sources */,
|
||||
A93F8803199A077F00875287 /* LoanListCell.m in Sources */,
|
||||
A9AA326019970335000BE4FB /* HomeAdView.m in Sources */,
|
||||
A988A900199A751500EB10AA /* FundListCell.m in Sources */,
|
||||
A9AF6C3D199486CA0076C0EE /* ProductListViewController.m in Sources */,
|
||||
A93F87741999AA8300875287 /* ManagerUtil.m in Sources */,
|
||||
A9AF6C941994C5700076C0EE /* UIScrollView+Extension.m in Sources */,
|
||||
|
||||
BIN
Binary file not shown.
@@ -59,8 +59,14 @@
|
||||
self.currentProgress = 0.0f;
|
||||
self.lastProgress = 0.0f;
|
||||
self.animated = YES;
|
||||
self.progressColor = [UIColor blueColor];
|
||||
self.wrapperColor = self.progressColor;
|
||||
|
||||
if (self.progressColor == nil) {
|
||||
self.progressColor = [UIColor blueColor];
|
||||
}
|
||||
if (self.wrapperColor == nil) {
|
||||
self.wrapperColor = self.progressColor;
|
||||
}
|
||||
|
||||
self.duration = 0.5;
|
||||
self.progressArcWidth = 3.0f;
|
||||
self.wrapperArcWidth = 1.f;
|
||||
|
||||
@@ -121,5 +121,13 @@
|
||||
*/
|
||||
- (void)slideSwitchView:(QCSlideSwitchView *)view didselectTab:(NSUInteger)number;
|
||||
|
||||
/*!
|
||||
* @method 滑动tab
|
||||
* @abstract
|
||||
* @discussion
|
||||
* @param tab索引
|
||||
* @result
|
||||
*/
|
||||
- (void)slideSwitchView:(QCSlideSwitchView *)view didScrollTab:(NSUInteger)number;
|
||||
@end
|
||||
|
||||
|
||||
@@ -132,7 +132,6 @@ static const NSUInteger kTagOfRightSideButton = 999;
|
||||
UIViewController *vc = [self.slideSwitchViewDelegate slideSwitchView:self viewOfTab:i];
|
||||
[_viewArray addObject:vc];
|
||||
[_rootScrollView addSubview:vc.view];
|
||||
NSLog(@"%@",[vc.view class]);
|
||||
}
|
||||
[self createNameButtons];
|
||||
|
||||
@@ -312,6 +311,10 @@ static const NSUInteger kTagOfRightSideButton = 999;
|
||||
int tag = (int)scrollView.contentOffset.x/self.bounds.size.width +100;
|
||||
UIButton *button = (UIButton *)[_topScrollView viewWithTag:tag];
|
||||
[self selectNameButton:button];
|
||||
if (self.slideSwitchViewDelegate
|
||||
&& [self.slideSwitchViewDelegate respondsToSelector:@selector(slideSwitchView:didScrollTab:)]) {
|
||||
[self.slideSwitchViewDelegate slideSwitchView:self didScrollTab:tag-100];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// TriangleView.h
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-12.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface TriangleView : UIView
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// TriangleView.m
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-12.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TriangleView.h"
|
||||
|
||||
@implementation TriangleView
|
||||
|
||||
- (id)initWithFrame:(CGRect)frame
|
||||
{
|
||||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
// Initialization code
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
// Only override drawRect: if you perform custom drawing.
|
||||
// An empty implementation adversely affects performance during animation.
|
||||
-
|
||||
(void)drawRect:(CGRect)rect
|
||||
|
||||
{
|
||||
|
||||
//设置背景颜色
|
||||
|
||||
[[UIColor whiteColor]set];
|
||||
|
||||
UIRectFill([self bounds]);
|
||||
|
||||
//拿到当前视图准备好的画板
|
||||
|
||||
CGContextRef
|
||||
context = UIGraphicsGetCurrentContext();
|
||||
|
||||
//利用path进行绘制三角形
|
||||
|
||||
CGContextBeginPath(context);//标记
|
||||
|
||||
CGContextMoveToPoint(context,0, 0);//设置起点
|
||||
|
||||
CGContextAddLineToPoint(context,165, 0);
|
||||
|
||||
CGContextAddLineToPoint(context,165, 105);
|
||||
|
||||
CGContextClosePath(context);//路径结束标志,不写默认封闭
|
||||
|
||||
[[UIColor redColor] setFill]; //设置填充色
|
||||
|
||||
[[UIColor blueColor] setStroke]; //设置边框颜色
|
||||
|
||||
CGContextDrawPath(context,kCGPathFillStroke);//绘制路径path
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// FundListCell.h
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-13.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface FundListCell : UITableViewCell
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// FundListCell.m
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-13.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FundListCell.h"
|
||||
|
||||
@implementation FundListCell
|
||||
|
||||
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
|
||||
{
|
||||
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
||||
if (self) {
|
||||
// Initialization code
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
|
||||
{
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4447" systemVersion="13A451" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3671"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "FundListViewController.h"
|
||||
|
||||
#import "TriangleView.h"
|
||||
@interface FundListViewController ()
|
||||
|
||||
@end
|
||||
@@ -27,6 +27,8 @@
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
TriangleView* view = [[TriangleView alloc] initWithFrame:CGRectMake(20, 100, 200, 200)];
|
||||
[self.view addSubview:view];
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="60" sectionHeaderHeight="22" sectionFooterHeight="22" id="6aq-ht-wte">
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="6aq-ht-wte">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="456"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
|
||||
@@ -7,7 +7,18 @@
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MRCircularProgressView.h"
|
||||
|
||||
@interface LoanListCell : UITableViewCell
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *profitLabel;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *typeImg;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
|
||||
@property (weak, nonatomic) IBOutlet DTAttributedLabel *timeDtLabel;
|
||||
@property (weak, nonatomic) IBOutlet DTAttributedLabel *percentDtlabel;
|
||||
@property (weak, nonatomic) IBOutlet MRCircularProgressView *percentView;
|
||||
|
||||
-(void)setPercent:(NSInteger) percent;
|
||||
-(void)setTimeWithString:(NSString*)htmlString;
|
||||
@end
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
|
||||
if (self) {
|
||||
// Initialization code
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -26,4 +27,34 @@
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
-(void)awakeFromNib
|
||||
{
|
||||
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC*1.0),
|
||||
// dispatch_get_main_queue(), ^(){
|
||||
// [self initView];
|
||||
// });
|
||||
[self initView];
|
||||
}
|
||||
-(void)initView
|
||||
{
|
||||
_percentView.wrapperColor = [UIColor clearColor];
|
||||
_percentView.progressColor = [UIColor redColor];
|
||||
_percentDtlabel.backgroundColor = [UIColor clearColor];
|
||||
}
|
||||
-(void)setPercent:(NSInteger) percent
|
||||
{
|
||||
NSString* htmlStr = [NSString stringWithFormat:@"<span style=\"font-size:20px; color:red; text-align:center; \">%ld</span> %%",percent];
|
||||
NSData *data = [htmlStr dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSDictionary* optionsDic = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:kCTTextAlignmentCenter],DTDefaultTextAlignment, nil];
|
||||
NSAttributedString *percentString = [[NSAttributedString alloc] initWithHTMLData:data options:optionsDic documentAttributes:nil];
|
||||
_percentDtlabel.attributedString = percentString;
|
||||
[_percentView setProgress:percent/100.0 animated:NO];
|
||||
}
|
||||
-(void)setTimeWithString:(NSString*)htmlString
|
||||
{
|
||||
NSData *data = [htmlString dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSDictionary* optionsDic = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:kCTTextAlignmentCenter],DTDefaultTextAlignment, nil];
|
||||
NSAttributedString *percentString = [[NSAttributedString alloc] initWithHTMLData:data options:optionsDic documentAttributes:nil];
|
||||
_timeDtLabel.attributedString = percentString;
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -7,28 +7,28 @@
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="49" id="a8I-Ce-eIx" customClass="LoanListCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="120"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="108"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="a8I-Ce-eIx" id="0kk-4S-epE">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="119"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="107"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的名字是" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Idi-qw-ohG">
|
||||
<rect key="frame" x="6" y="16" width="188" height="19"/>
|
||||
<rect key="frame" x="16" y="16" width="188" height="19"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<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="cYE-AW-FFh">
|
||||
<rect key="frame" x="6" y="43" width="100" height="21"/>
|
||||
<rect key="frame" x="16" y="43" width="100" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.25115593112244894" green="0.25115593112244894" blue="0.25115593112244894" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="8.00%" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="gnS-Tv-BcD">
|
||||
<rect key="frame" x="6" y="72" width="90" height="21"/>
|
||||
<rect key="frame" x="16" y="72" width="90" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<color key="textColor" red="0.94664779970000001" green="0.21506300749999999" blue="0.1431705727" alpha="1" colorSpace="calibratedRGB"/>
|
||||
@@ -45,32 +45,51 @@
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="fund_cell_label_bg_blue.png" id="Abj-cs-h8U">
|
||||
<rect key="frame" x="270" y="16" width="30" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" id="4z9-ep-7jg">
|
||||
<rect key="frame" x="215" y="25" width="70" height="70"/>
|
||||
<rect key="frame" x="215" y="32" width="70" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pie_chart_center.png" id="oUp-Tx-bC8">
|
||||
<rect key="frame" x="0.0" y="0.0" width="70" height="70"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" id="hV2-1G-Fem" customClass="MRCircularProgressView">
|
||||
<rect key="frame" x="-1" y="1" width="70" height="70"/>
|
||||
<rect key="frame" x="5" y="5" width="60" height="60"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pie_chart_center.png" id="oUp-Tx-bC8">
|
||||
<rect key="frame" x="5" y="5" width="60" height="60"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" id="jKx-eQ-tZj" customClass="DTAttributedLabel">
|
||||
<rect key="frame" x="-1" y="18" width="70" height="35"/>
|
||||
<rect key="frame" x="12" y="23" width="46" height="34"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<view alpha="0.29999999999999999" contentMode="scaleToFill" id="d0U-mH-Q48">
|
||||
<rect key="frame" x="0.0" y="106" width="320" height="1"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
</subviews>
|
||||
</tableViewCellContentView>
|
||||
<connections>
|
||||
<outlet property="infoLabel" destination="cYE-AW-FFh" id="H99-YX-TOn"/>
|
||||
<outlet property="nameLabel" destination="Idi-qw-ohG" id="Sin-dw-1XV"/>
|
||||
<outlet property="percentDtlabel" destination="jKx-eQ-tZj" id="d0H-GV-ZdV"/>
|
||||
<outlet property="percentView" destination="hV2-1G-Fem" id="GTM-2T-X7I"/>
|
||||
<outlet property="priceLabel" destination="gFc-RY-QUU" id="nSK-qF-A0n"/>
|
||||
<outlet property="profitLabel" destination="gnS-Tv-BcD" id="fMT-gW-cxV"/>
|
||||
<outlet property="timeDtLabel" destination="0L4-K9-Tyn" id="5dK-d7-zP9"/>
|
||||
<outlet property="typeImg" destination="Abj-cs-h8U" id="j1s-z7-TLe"/>
|
||||
</connections>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="fund_cell_label_bg_blue.png" width="38" height="40"/>
|
||||
<image name="pie_chart_center.png" width="235" height="235"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "LoanListViewController.h"
|
||||
#import "AdjustableUILable.h"
|
||||
#import "LoanListCell.h"
|
||||
@interface LoanListViewController ()
|
||||
|
||||
@end
|
||||
@@ -27,6 +28,7 @@
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view.
|
||||
[_tableView setSectionIndexBackgroundColor:[UIColor blackColor]];
|
||||
}
|
||||
|
||||
#pragma mark UITableViewDelegate
|
||||
@@ -34,26 +36,27 @@
|
||||
return 1;
|
||||
}
|
||||
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
|
||||
return 30;
|
||||
return 10;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
CGFloat height = 108.0;
|
||||
return height;
|
||||
|
||||
}
|
||||
//-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
//{
|
||||
// CGFloat height = 100.0;
|
||||
// return height;
|
||||
//
|
||||
//}
|
||||
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
static NSString *homeViewCell = @"HomeViewCell";
|
||||
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:homeViewCell];
|
||||
static NSString *loanListCell = @"LoanListCell";
|
||||
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:loanListCell];
|
||||
if (cell == nil) {
|
||||
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:homeViewCell];
|
||||
// AdjustableUILable* label = [[AdjustableUILable alloc] initWithFrame:cell.frame];
|
||||
// label.text = @"nihao";
|
||||
// label.characterSpacing = 14.0;
|
||||
// [cell addSubview:label];
|
||||
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:loanListCell];
|
||||
NSArray *LoanListCellObjects = [[NSBundle mainBundle] loadNibNamed:@"LoanListCell" owner:self options:nil];
|
||||
cell = [LoanListCellObjects objectAtIndex:0];
|
||||
|
||||
}
|
||||
cell.textLabel.text = [NSString stringWithFormat:@" 第 %d 行",indexPath.row];
|
||||
[(LoanListCell*)cell setPercent:40];
|
||||
NSString* htmlStr = @"<span style=\"font-size:12px;text-align:center; color:green; \">限</span>12个月";
|
||||
[(LoanListCell*)cell setTimeWithString:htmlStr];
|
||||
return cell;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,14 +80,10 @@
|
||||
|
||||
}
|
||||
|
||||
//- (void)slideSwitchView:(QCSlideSwitchView *)view panLeftEdge:(UIPanGestureRecognizer *)panParam
|
||||
//{
|
||||
// QCViewController *drawerController = (QCViewController *)self.navigationController.mm_drawerController;
|
||||
// [drawerController panGestureCallback:panParam];
|
||||
//}
|
||||
|
||||
- (void)slideSwitchView:(QCSlideSwitchView *)view didselectTab:(NSUInteger)number
|
||||
{
|
||||
DLog(@"%ld",number);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user