mirror of
https://github.com/wu736139669/ManagerDemo.git
synced 2026-10-06 18:40:10 +00:00
update
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
63816045C89E43DD9F96396F /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C7B3792862C24377B1ACD469 /* libPods.a */; };
|
||||
A90BEC01199DDA9E00230242 /* WYDProductViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A90BEBFF199DDA9E00230242 /* WYDProductViewController.m */; };
|
||||
A90BEC02199DDA9E00230242 /* WYDProductViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90BEC00199DDA9E00230242 /* WYDProductViewController.xib */; };
|
||||
A90BEC05199DDACA00230242 /* WYDInfoHeadView.m in Sources */ = {isa = PBXBuildFile; fileRef = A90BEC04199DDACA00230242 /* WYDInfoHeadView.m */; };
|
||||
A90BEC07199DDAFB00230242 /* WYDInfoHeadView.xib in Resources */ = {isa = PBXBuildFile; fileRef = A90BEC06199DDAFB00230242 /* WYDInfoHeadView.xib */; };
|
||||
A9233E64199CA44700DA80D8 /* more_icon_5@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A9233E63199CA44700DA80D8 /* more_icon_5@2x.png */; };
|
||||
A93F87741999AA8300875287 /* ManagerUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = A93F87731999AA8300875287 /* ManagerUtil.m */; };
|
||||
A93F877C1999ACF600875287 /* MBProgressHUD+Util.m in Sources */ = {isa = PBXBuildFile; fileRef = A93F877B1999ACF600875287 /* MBProgressHUD+Util.m */; };
|
||||
@@ -129,6 +133,12 @@
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
5730F11CFCAA47EB9D024FB8 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = "<group>"; };
|
||||
A90BEBFE199DDA9E00230242 /* WYDProductViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WYDProductViewController.h; sourceTree = "<group>"; };
|
||||
A90BEBFF199DDA9E00230242 /* WYDProductViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WYDProductViewController.m; sourceTree = "<group>"; };
|
||||
A90BEC00199DDA9E00230242 /* WYDProductViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = WYDProductViewController.xib; sourceTree = "<group>"; };
|
||||
A90BEC03199DDACA00230242 /* WYDInfoHeadView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WYDInfoHeadView.h; sourceTree = "<group>"; };
|
||||
A90BEC04199DDACA00230242 /* WYDInfoHeadView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WYDInfoHeadView.m; sourceTree = "<group>"; };
|
||||
A90BEC06199DDAFB00230242 /* WYDInfoHeadView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = WYDInfoHeadView.xib; sourceTree = "<group>"; };
|
||||
A9233E63199CA44700DA80D8 /* more_icon_5@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "more_icon_5@2x.png"; sourceTree = "<group>"; };
|
||||
A93F87721999AA8300875287 /* ManagerUtil.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ManagerUtil.h; sourceTree = "<group>"; };
|
||||
A93F87731999AA8300875287 /* ManagerUtil.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ManagerUtil.m; sourceTree = "<group>"; };
|
||||
@@ -304,6 +314,19 @@
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
A90BEBFD199DDA9300230242 /* ProductView */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A90BEBFE199DDA9E00230242 /* WYDProductViewController.h */,
|
||||
A90BEBFF199DDA9E00230242 /* WYDProductViewController.m */,
|
||||
A90BEC00199DDA9E00230242 /* WYDProductViewController.xib */,
|
||||
A90BEC03199DDACA00230242 /* WYDInfoHeadView.h */,
|
||||
A90BEC04199DDACA00230242 /* WYDInfoHeadView.m */,
|
||||
A90BEC06199DDAFB00230242 /* WYDInfoHeadView.xib */,
|
||||
);
|
||||
path = ProductView;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A93F87751999AB4400875287 /* MBProgressHUD */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -609,6 +632,7 @@
|
||||
A9AF6C971994C97F0076C0EE /* MainView */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A90BEBFD199DDA9300230242 /* ProductView */,
|
||||
A94FE51B199C9BE300626DE5 /* MoveView */,
|
||||
A9C69443199BBE9500B2CECE /* MyView */,
|
||||
A9A660B31999180000E9D166 /* ListView */,
|
||||
@@ -746,6 +770,7 @@
|
||||
A9EAA0501998787B001A872A /* hk_home_center_cover@2x.png in Resources */,
|
||||
A9AF6C6719949CD30076C0EE /* icon_dock_session_actived@2x.png in Resources */,
|
||||
A9AF6C771994B5890076C0EE /* icon_indicate_more@2x.png in Resources */,
|
||||
A90BEC02199DDA9E00230242 /* WYDProductViewController.xib in Resources */,
|
||||
A9AA325A199702DB000BE4FB /* Images.xcassets in Resources */,
|
||||
A9AF6C6519949CD30076C0EE /* icon_dock_service@2x.png in Resources */,
|
||||
A9AF6CA01994D0210076C0EE /* ad1@2x.png in Resources */,
|
||||
@@ -757,6 +782,7 @@
|
||||
A9C69453199BD14D00B2CECE /* more_icon_4@2x.png in Resources */,
|
||||
A9C69442199BB7B100B2CECE /* icon_person_take_image@2x.png in Resources */,
|
||||
A9C69457199BD14D00B2CECE /* more_icon_9@2x.png in Resources */,
|
||||
A90BEC07199DDAFB00230242 /* WYDInfoHeadView.xib in Resources */,
|
||||
A9AF6BF719947DD00076C0EE /* InfoPlist.strings in Resources */,
|
||||
A9AF6C761994B5890076C0EE /* icon_indicate_more_down@2x.png in Resources */,
|
||||
A9EAA04619986DC3001A872A /* fund_cell_label_bg_gray@2x.png in Resources */,
|
||||
@@ -849,10 +875,12 @@
|
||||
A9AF6C951994C5700076C0EE /* UIScrollView+MJRefresh.m in Sources */,
|
||||
A9AA326119970335000BE4FB /* ImagePlayerView.m in Sources */,
|
||||
A9AF6C0319947DD00076C0EE /* ViewController.m in Sources */,
|
||||
A90BEC01199DDA9E00230242 /* WYDProductViewController.m in Sources */,
|
||||
A9AF6BFD19947DD00076C0EE /* AppDelegate.m in Sources */,
|
||||
A9AF6C911994C5700076C0EE /* MJRefreshConst.m in Sources */,
|
||||
A9AF6C931994C5700076C0EE /* MJRefreshHeaderView.m in Sources */,
|
||||
A9AF6BF919947DD00076C0EE /* main.m in Sources */,
|
||||
A90BEC05199DDACA00230242 /* WYDInfoHeadView.m in Sources */,
|
||||
A93F877C1999ACF600875287 /* MBProgressHUD+Util.m in Sources */,
|
||||
A9C69446199BBEB200B2CECE /* MyTotalProfitCellView.m in Sources */,
|
||||
A9AF6C33199484200076C0EE /* HomeViewController.m in Sources */,
|
||||
|
||||
BIN
Binary file not shown.
@@ -48,7 +48,7 @@
|
||||
if (self)
|
||||
{
|
||||
}
|
||||
imageArray=imageviewarr;
|
||||
imageArray=[[NSMutableArray alloc] initWithArray:imageviewarr];
|
||||
loop=NO;
|
||||
NSUInteger pageCount=[imageviewarr count];
|
||||
[self setContentSize:CGSizeMake(self.frame.size.width*pageCount, self.frame.size.height)];
|
||||
@@ -63,7 +63,6 @@
|
||||
}
|
||||
|
||||
self.pagecontrol.numberOfPages=pageCount;//总的图片页数
|
||||
NSLog(@"%d",self.pagecontrol.numberOfPages);
|
||||
[self.pagecontrol addObserver:self forKeyPath:@"currentPage" options:NSKeyValueObservingOptionNew|NSKeyValueObservingOptionOld context:NULL];
|
||||
return self;
|
||||
}
|
||||
@@ -96,6 +95,8 @@
|
||||
UIImageView *imageview=[tempArray objectAtIndex:i];
|
||||
imageview.userInteractionEnabled=YES;
|
||||
imageview.frame=bounds;
|
||||
imageview.contentMode = UIViewContentModeScaleToFill;
|
||||
imageview.clipsToBounds = YES;
|
||||
[self addSubview:imageview];
|
||||
}
|
||||
self.pagecontrol.numberOfPages=pageCount-2;//总的图片页数
|
||||
@@ -121,14 +122,6 @@
|
||||
if (self.pagecontrol.numberOfPages == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// NSInteger currentPage = self.pagecontrol.currentPage;
|
||||
// NSInteger nextPage = currentPage + 1;
|
||||
// self.pagecontrol.currentPage++;
|
||||
// if (nextPage == self.pagecontrol.numberOfPages) {
|
||||
// nextPage = 0;
|
||||
// self.pagecontrol.currentPage = 0;
|
||||
// }
|
||||
self.currentPageIndex++;
|
||||
[self autoTurn];
|
||||
|
||||
@@ -152,16 +145,18 @@
|
||||
{
|
||||
CGSize viewSize = self.frame.size;
|
||||
CGRect rect = CGRectMake(self.currentPageIndex * viewSize.width, 0, viewSize.width, viewSize.height);
|
||||
|
||||
|
||||
|
||||
[self scrollRectToVisible:rect animated:YES];
|
||||
|
||||
[self HDscrollViewDidScroll];
|
||||
[self HDscrollViewDidEndDecelerating];
|
||||
|
||||
}
|
||||
-(void)HDscrollViewDidScroll
|
||||
{
|
||||
if (self.contentOffset.y > 0) {
|
||||
[self setContentOffset:CGPointMake(self.contentOffset.x, 0)];
|
||||
return;
|
||||
}
|
||||
if (loop) {
|
||||
CGFloat pageWidth = self.frame.size.width;
|
||||
int page = floor((self.contentOffset.x - pageWidth / 2) / pageWidth)+1;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
viewController.extendedLayoutIncludesOpaqueBars = NO;
|
||||
viewController.modalPresentationCapturesStatusBarAppearance = NO;
|
||||
viewController.navigationController.navigationBar.translucent = NO;
|
||||
viewController.tabBarController.tabBar.translucent = NO;
|
||||
// viewController.navigationController.navigationBar.tintColor = [UIColor blackColor];
|
||||
// viewController.navigationController.navigationBar.backgroundColor = [UIColor blackColor];
|
||||
}
|
||||
|
||||
@@ -12,4 +12,5 @@
|
||||
{
|
||||
HDScrollview* _scrollview;
|
||||
}
|
||||
@property(strong, nonatomic)HDScrollview* scrollview;
|
||||
@end
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
_scrollview.HDdelegate=self;
|
||||
[self addSubview:_scrollview];
|
||||
_scrollview.pagecontrol.frame=CGRectMake(0, _scrollview.pagecontrol.frame.origin.y+_scrollview.frame.size.height-10, 320, 10);
|
||||
_scrollview.pagecontrol.currentcolor=[UIColor blackColor];
|
||||
_scrollview.pagecontrol.currentcolor=[UIColor brownColor];
|
||||
_scrollview.pagecontrol.othercolor=[UIColor whiteColor];
|
||||
_scrollview.pagecontrol.currentPage=0;
|
||||
[_scrollview setScrollInterval:5];
|
||||
@@ -50,7 +50,11 @@
|
||||
|
||||
- (void)scrollViewDidScroll:(UIScrollView *)sender
|
||||
{
|
||||
// disable v direction scroll
|
||||
|
||||
[_scrollview HDscrollViewDidScroll];
|
||||
|
||||
|
||||
}
|
||||
- (void)scrollViewDidEndDecelerating:(UIScrollView *)_scrollView
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
}
|
||||
-(void)awakeFromNib{
|
||||
[super awakeFromNib];
|
||||
|
||||
}
|
||||
|
||||
// Only override drawRect: if you perform custom drawing.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
@@ -10,12 +10,12 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="280" height="295"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="r0t-sm-d8w" customClass="MRCircularProgressView">
|
||||
<view contentMode="scaleToFill" id="r0t-sm-d8w" customClass="MRCircularProgressView">
|
||||
<rect key="frame" x="78" y="46" width="125" height="125"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" placeholderIntrinsicWidth="118" placeholderIntrinsicHeight="118" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TJP-Gm-InT">
|
||||
<button opaque="NO" contentMode="scaleToFill" placeholderIntrinsicWidth="118" placeholderIntrinsicHeight="118" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="TJP-Gm-InT">
|
||||
<rect key="frame" x="81" y="49" width="118" height="118"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal" image="pie_chart_center.png">
|
||||
@@ -25,12 +25,12 @@
|
||||
<action selector="percentBtnClick:" destination="7ik-6g-4aB" eventType="touchUpInside" id="D8X-3U-Zz0"/>
|
||||
</connections>
|
||||
</button>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bkz-1X-k90" customClass="DTAttributedLabel">
|
||||
<view contentMode="scaleToFill" id="bkz-1X-k90" customClass="DTAttributedLabel">
|
||||
<rect key="frame" x="109" y="84" width="63" height="47"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="bottom" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="点我你就会变超人" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iR9-8X-qqa">
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="bottom" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="点我你就会变超人" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="iR9-8X-qqa">
|
||||
<rect key="frame" x="3" y="-6" width="200" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="19"/>
|
||||
@@ -39,16 +39,16 @@
|
||||
<color key="shadowColor" red="0.981644611" green="0.981644611" blue="0.981644611" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<size key="shadowOffset" width="1" height="1"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="KFi-f6-ETu">
|
||||
<view contentMode="scaleToFill" id="KFi-f6-ETu">
|
||||
<rect key="frame" x="240" y="0.0" width="40" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="fund_cell_label_bg_blue.png" translatesAutoresizingMaskIntoConstraints="NO" id="Obj-JA-SBo">
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="fund_cell_label_bg_blue.png" id="Obj-JA-SBo">
|
||||
<rect key="frame" x="0.0" y="0.0" width="40" height="40"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
|
||||
</imageView>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" placeholderIntrinsicWidth="42" placeholderIntrinsicHeight="21" text="新手" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1tT-kO-DcP">
|
||||
<rect key="frame" x="0.0" y="-9" width="42" height="21"/>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" placeholderIntrinsicWidth="42" placeholderIntrinsicHeight="21" text="新手" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="1tT-kO-DcP">
|
||||
<rect key="frame" x="0.0" y="9" width="42" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<rect key="contentStretch" x="1" y="1" width="1" height="1"/>
|
||||
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/>
|
||||
@@ -58,29 +58,29 @@
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bMf-HX-BVn" customClass="DTAttributedLabel">
|
||||
<view contentMode="scaleToFill" id="bMf-HX-BVn" customClass="DTAttributedLabel">
|
||||
<rect key="frame" x="3" y="181" width="130" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="yOO-QQ-AEi" customClass="DTAttributedLabel">
|
||||
<view contentMode="scaleToFill" id="yOO-QQ-AEi" customClass="DTAttributedLabel">
|
||||
<rect key="frame" x="150" y="181" width="130" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Igx-ly-iLf">
|
||||
<view contentMode="scaleToFill" id="Igx-ly-iLf">
|
||||
<rect key="frame" x="141" y="181" width="1" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="额外送你20快钱" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kkT-GU-Uxk">
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="额外送你20快钱" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="kkT-GU-Uxk">
|
||||
<rect key="frame" x="11" y="209" width="260" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<color key="textColor" red="1" green="0.37822147690000002" blue="0.16647340829999999" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="b3g-Qg-i3k">
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="b3g-Qg-i3k">
|
||||
<rect key="frame" x="0.0" y="231" width="280" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.79962531889999999" green="0.18166188729999999" blue="0.1209349611" alpha="1" colorSpace="calibratedRGB"/>
|
||||
@@ -92,7 +92,7 @@
|
||||
<action selector="sureBtnClick:" destination="7ik-6g-4aB" eventType="touchUpInside" id="EqN-bW-UPj"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bXv-dI-unZ">
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="bXv-dI-unZ">
|
||||
<rect key="frame" x="81" y="49" width="118" height="118"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<state key="normal">
|
||||
@@ -117,6 +117,6 @@
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="fund_cell_label_bg_blue.png" width="38" height="40"/>
|
||||
<image name="pie_chart_center.png" width="235" height="235"/>
|
||||
<image name="pie_chart_center.png" width="117" height="117"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -12,7 +12,10 @@
|
||||
{
|
||||
__weak UITableView* _tableView;
|
||||
NSInteger _count;
|
||||
__weak UIViewController* _delegate; //保存创建的UIViewControll
|
||||
}
|
||||
@property (weak, nonatomic) UIViewController* delegate;
|
||||
@property (weak, nonatomic) UINavigationController* listNavigationController;
|
||||
@property (weak, nonatomic) IBOutlet UITableView *tableView;
|
||||
@property (assign, nonatomic)NSInteger count;
|
||||
- (void)headerRereshing;
|
||||
|
||||
@@ -27,6 +27,12 @@
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view from its nib.
|
||||
[ManagerUtil SetSubViewExternNone:self];
|
||||
if (ScreenHeight <= 480) {
|
||||
CGRect frame = _tableView.frame;
|
||||
frame.size.height -= 20;
|
||||
_tableView.frame = frame;
|
||||
}
|
||||
[_tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
@@ -103,5 +109,8 @@
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
-(void)dealloc
|
||||
{
|
||||
self.delegate = nil;
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<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"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="454"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableView>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// WYDInfoHeadView.h
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-15.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface WYDInfoHeadView : UIView
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// WYDInfoHeadView.m
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-15.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import "WYDInfoHeadView.h"
|
||||
|
||||
@implementation WYDInfoHeadView
|
||||
|
||||
- (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
|
||||
{
|
||||
// Drawing code
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="zH2-jS-ky3" customClass="WYDInfoHeadView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="178"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="1" green="0.37822147690000002" blue="0.16647340829999999" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// WYDProductViewController.h
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-15.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface WYDProductViewController : UIViewController<UITableViewDataSource, UITableViewDelegate>
|
||||
@property (weak, nonatomic) IBOutlet UITableView *tableView;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// WYDProductViewController.m
|
||||
// ManagerDemo
|
||||
//
|
||||
// Created by xmfish on 14-8-15.
|
||||
// Copyright (c) 2014年 ash. All rights reserved.
|
||||
//
|
||||
|
||||
#import "WYDProductViewController.h"
|
||||
#import "WYDInfoHeadView.h"
|
||||
@interface WYDProductViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation WYDProductViewController
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view from its nib.
|
||||
[ManagerUtil SetSubViewExternNone:self];
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
NSArray *nib=[[NSBundle mainBundle]loadNibNamed:@"WYDInfoHeadView" owner:self options:nil];
|
||||
|
||||
|
||||
WYDInfoHeadView* wydInfoHedaView = (WYDInfoHeadView*)[nib objectAtIndex:0];
|
||||
_tableView.tableHeaderView = wydInfoHedaView;
|
||||
}
|
||||
|
||||
#pragma mark UITableViewDelegate
|
||||
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
if (indexPath.section == 0) {
|
||||
return 60;
|
||||
}
|
||||
return 60;
|
||||
}
|
||||
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
UITableViewCell* cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
|
||||
cell.textLabel.text = @"我是一个好人";
|
||||
return cell;
|
||||
|
||||
}
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="WYDProductViewController">
|
||||
<connections>
|
||||
<outlet property="tableView" destination="rA7-5n-YqE" id="s38-y2-wXM"/>
|
||||
<outlet property="view" destination="1" id="3"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="1">
|
||||
<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" fixedFrame="YES" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" translatesAutoresizingMaskIntoConstraints="NO" id="rA7-5n-YqE">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
|
||||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
@@ -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" fixedFrame="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="f4k-6j-E3O">
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="f4k-6j-E3O">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.allowsSelection = YES;
|
||||
|
||||
// _tableView.separatorStyle = UITableViewCellSelectionStyleNone;
|
||||
// [_tableView style] = UITableViewStyleGrouped;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
@@ -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" fixedFrame="YES" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" translatesAutoresizingMaskIntoConstraints="NO" id="AZ2-p3-oop">
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="grouped" separatorStyle="default" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="10" sectionFooterHeight="10" id="AZ2-p3-oop">
|
||||
<rect key="frame" x="20" y="0.0" width="280" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" red="0.96075813137755106" green="0.96075813137755106" blue="0.96075813137755106" alpha="1" colorSpace="calibratedRGB"/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4514" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3746"/>
|
||||
</dependencies>
|
||||
@@ -15,8 +15,9 @@
|
||||
<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" fixedFrame="YES" alwaysBounceVertical="YES" style="grouped" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="1" sectionFooterHeight="1" translatesAutoresizingMaskIntoConstraints="NO" id="EYG-x6-MXU">
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="grouped" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="1" sectionFooterHeight="1" id="EYG-x6-MXU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||
<inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
|
||||
</tableView>
|
||||
|
||||
@@ -27,10 +27,13 @@
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
LoanListViewController* loanListViewController = [[LoanListViewController alloc] initWithNibName:@"ListViewController" bundle:nil];
|
||||
// loanListViewController.delegate = self;
|
||||
loanListViewController.title = @"列表1";
|
||||
FundListViewController* fundListViewController = [[FundListViewController alloc] initWithNibName:@"ListViewController" bundle:nil];
|
||||
// fundListViewController.delegate = self;
|
||||
fundListViewController.title = @"列表2";
|
||||
OtherListViewController* otherListViewController = [[OtherListViewController alloc] initWithNibName:@"ListViewController" bundle:nil];
|
||||
// otherListViewController.delegate = self;
|
||||
otherListViewController.title = @"列表3";
|
||||
listViewContrllerArray = @[loanListViewController, fundListViewController, otherListViewController];
|
||||
_nowSelectTab = 0;
|
||||
@@ -43,6 +46,8 @@
|
||||
[super viewDidLoad];
|
||||
// Do any additional setup after loading the view from its nib.
|
||||
[ManagerUtil SetSubViewExternNone:self];
|
||||
|
||||
|
||||
//右边按钮。
|
||||
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(rightBarBtnClick:)]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user