//
// CCUITableView.m
// CCFC
//
// Created by xichen on 11-12-28.
// Copyright 2011 ccteam. All rights reserved.
//
#import "CCUITableView.h"
#import "CCUIView.h"
@implementation UITableView(cc)
- (void)scrollToBottom:(BOOL)animated
{
NSUInteger lastSection = [self numberOfSections] - 1;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[self numberOfRowsInSection:lastSection]
inSection:lastSection];
[self scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:animated];
}
// get the vertical scroll indicator
- (UIView *)getVerticalScrollIndicator
{
id verticalIndicatorImgView = nil;
object_getInstanceVariable(self, "_verticalScrollIndicator", (void **)&verticalIndicatorImgView);
return (UIView *)verticalIndicatorImgView;
}
// hide the vertical scroll indicator
- (BOOL)hideVerticalScrollIndicator
{
UIView *indicatorView = [self getVerticalScrollIndicator];
indicatorView.hidden = YES;
return indicatorView != nil;
}
@end
可能有更新:
googlecode链接地址:
http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUITableView.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCUITableView.m
分享到:
相关推荐
codes = """--..-- .-.-.- ----- .---- ..--- ...-- ....- ..... -.... --... ---.. ----. ..--.. .- -... -.-. -... . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -.
LearningMATLAB-All_Statistics_Codes.zip All_Statistics_Codes.zip MatlabLearn.pdf
LearningMATLAB-All_Various_Codes.zip All_Statistics_Codes.zip MatlabLearn.pdf
JS+HTML实现绕地球飞行的3D飞行线动画效果源码
github-recovery-codes.txt
单bit错误校正,多bit错误检测的ECC算法论文;比传统的Hamming更加简洁、高效。
amoghadam-CT-to-MCNP-Matlab-codes-archive-refs-heads-master.zip
activiti实战配套源码,工作流被广泛应用于各种信息化系统中,开发人员共同协作制作了符合bpmn 2.0规范的流程定义
zhaoqf123-PhD-research-codes-archive-refs-heads-master.zip
目录 Invited Talks.- Understanding and Inductive Inference.- Computing with Cells: Membrane... Zero-Knowledge Argument for Simultaneous Discrete Logarithms.- Directed Figure Codes: Decidability Frontier.
Design of low-density parity-check codes for modulation and detection.pdf
codes.zipcodes.zipcodes.zipcodes.zip
jquery-liMarquee-scroll-style-codes(jb51.net).rar jquery-多风格多功能滚动特效插件-jquery.liMarquee.js-源码
Galleger的博士论文,LDPC。做了整理
Illustration of NLS Approach for TOA - Based Positioning in a Single Trial
05-Status-Codes-Chinese.pdf 06-Response-Headers-Chinese.pdf 07-Cookies-Chinese.pdf 08-Session-Tracking-Chinese.pdf 09-JSP-Intro-Chinese.pdf 10-JSP-Scripting-Elements-Chinese.pdf 11-page-Directive-...
Fundamentals of Error-Correcting Codes Fundamentals of Error-Correcting Codes is an in-depth introduction to coding theory from both an engineering and mathematical viewpoint. As well as covering ...
1 - Cable Matlab Source Code - IntePar1p6_Codes.zip.zip
Here are some sample codes of NS2.
ABAP源代码-初学者参考 abap source codes.rar